After Android 4.2, because the ADB control, unified use of persist.sys.usb.config to control, so the corresponding set point also changed to frameworks/base/service/...../usb/ Usbdevicemanager.java, you can also see similar code such as:Public
The input command was used in the gamma automated test of the LCD module recently, so we also learned about the use of the command. When you run the ADB shell and then enter input, the operation will output input using the following
Linux shell && | | shell returns a return value when executing a command that is saved in the shell variable $? In When $? = = 0 o'clock, indicating successful execution; = = 1 o'clock, which indicates that the execution failed. www.2cto.com
I. general Variables
#/Bin/sh
Num = 2
Echo "this is the $ {num} Nd" # If the shell script language variables are tightly connected to letters, add.
Output result:
Ii. System Variables
$ #: Number of command line parameters for input scripts
Parse all commands in hadoop HDFS (the operation process is your own idea. You are welcome to correct them)
Interface Name
Function
Procedure
Get
Copy the file to the local file system. If multiple source files are
The TR command does not accept specified file parameters, but only translates standard input. tr is short for translate, that is, translation. Note that it cannot translate sentences, only one character can be translated.
First, define the variable:
Hadoop supports command line operations on the HDFS file system, and supports shell-like commands to interact with HDFS file systems. For most programmers, shell-like command line operations are quite familiar, in fact, this is also one of the great
TR is used to delete control characters in a file or convert characters.Syntax: TR [-C/D/S/T] [set1] [set2]Set1: Character Set 1Set2: Character Set 2
-C: complement. Use set2 to replace characters not included in set1.
-D: delete all characters in
Man Bash:
Special ParametersThe shell treats several parameters specially. These parameters mayOnly be referenced; assignment to them is not allowed.* Expands to the positional parameters, starting from one. WhenThe expansion occurs within double
Print "YY/MM/dd hh: mm: SS" at a row or a location"
First determine the location
Output again
Note: The time format is incorrect. % Y: % B: % d % H: % m: % s
Locate and cursor to problems:
Tput Cup 10 10
Tput SC, tput RC, tput CIVIS, tput
I have written a git usage and advanced practice article, which explains many basic git usage, including creating a repository and troubleshooting some errors.
I often create a git repository on a local home host/Server. A git repository is required
1. First, cut Apache logs by day
VI/etc/httpd/CONF/httpd. confErrorlog "| rotatelogs/var/log/httpd/% Y % m % derror_log 86400 480 ″Customlog "| rotatelogs/var/log/httpd/% Y % m % daccess_log 86400 480" combined
Ii. Restart Apache server
Service
Command: 1. Modify the chmod permission:
The general format of the chmod command is: chmod [who] operator [permission] filenamew h o. The meaning of o is: u file master permission. G. O other user permissions. A. All users (file owner, users in
# Linux LVM Tool full version: http://xin23.blog.51cto.com/1827266/1198836 (update 2013.5.13)
# Scripts are only used for communication and learning!# The current script version is 1. 0. creates, removes, changes (enables/disables allocation),
Preface * with the development of the entire Internet, there have been countless websites, large and small. As a result, users are increasingly enhancing their website UI and speed experience. For enterprises or individuals, winning the user
Shell programming (3) shell Syntax Functions
To define a shell function, we only need to write its name, then a pair of empty parentheses, and then put the related statements in a pair of curly braces, as shown below:
Function_name
Xp_cmdshell command shellThis process is an extended stored procedure used to execute a specified command string and return any output as a text line.Syntax:Xp_cmdshell command_string [, no_output]Command_string command string to be
Many people use third-party software to build FTP and WEB servers, which means IIS is complicated and difficult to use. it may be said that IIS is not secure. This is because you do not pay attention to your security policy settings, and then others
I am a Shanghai Telecom ADSL Broadband User and use ZTE ADSL 831 MODEN to access the Internet.I am an old man and I don't want to know much about it technically. I just drew a gourd image. After two weeks of hard work, I initially set up my
1. Install the system patch of power shell V2.0 on the client. The patch number is KB968930, which includes winrm and powershell 2.0.
2. Set the view connection server to a trusted host of winrm:
Ps c: \ set-item wsman: \ localhost \ Client \
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service