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
Requirement-driven Linux Shell Programming
Requirement-driven Linux Shell programmingtable of Contents
1. Where can I find the basic Material about Linux Shell programming?
2. How to time a function/program (Get the execution time of a
Requirement-driven Linux Shell Programming
Requirement-driven Linux Shell programmingtable of Contents
1. Where can I find the basic Material about Linux Shell programming?
2. How to time a function/program (Get the execution time of a
Shell Programming for Linux1. What is a shell?When a user logs on to a Linux system, the system initialization program Init runs a program called a shell (shell) for each user.The shell is a command-line interpreter that provides the user with an
Shell text filtering (grep) Classification: Linux Shell script LearningRead by 588Comment (0)FavoritesReport Shell Regular Expression extension tool Storage Grep (Global Regular Expression version) allows Pattern searches for text files. If the
Use the date command to convert the Basic time second to year, month, and day: Command: Date-d @ 1281161747 Be sure not to forget the symbol "@" # Obtain the current time by date # Date-d "-1 week" + % Y % m % d get last week date (day, month,
Preface:
SSH command. No password parameter is specified. so that when using the SSH command in the script, you must manually enter the password to continue the execution. this makes the automatic execution of scripts very poor, especially when the
Tag: Shell
PS: Today I added an O & M group, Hi brother .. I have to answer questions .. Then
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/3E/00/wKioL1PF9FqRrUCKAABsKQiTqns966.jpg "Title =" qq 40716113536.jpg "alt ="
Start with 1The program must start with the following line (must begin with the first line of the file ):#! /Bin/shSymbol #! The parameter used to tell the system that the program is used to execute the file. In this example, we use/bin/sh to
Sometimes, we need to create a file to temporarily store some output information. When creating a file, there may be problems with the file name. How to create a unique file name is provided in Linux:
1. mktemp (highly recommended)
The mktemp
1. Name the variable
Num = 2 Echo "this is {$ num} Nd"
Output this is 2nd
2. Variable addition the default value is string addition.
Var = 1var = $ var + 1 echo $ VaR
Output 1 + 1
3. How to add mathematics:
Let "Var + = 1" Var = "$ [$ var + 1]
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
ShellList the 10 most frequently used shellsHistory | awk '{A [$2] ++} end {for (I in a) {print a [I] "" I}' | sort-Rn | HEADHistory | awk '{A [$4] ++} end {for (I in a) {print a [$ I] & quot; i} '| sort-Rn | HEADGrep-V "#". bash_history | awk '{++
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
Tag: Process Using Div string shell script$0: Script Name $1-$9: location parameter #2-#9 $ {10}: location parameter #10 $ #: Number of location parameters "$ *": all location parameters (as a single string) "[email protected]": All location
Shell text filtering (Regular Expression) classification: Linux Shell script learning 213 people read comments (0) collect reports
When extracting or filtering text from a file or command output, you can use a regular expression (r e), which is a
I. Introduction
Hbase is a distributed, column-oriented open-source database. It originated from Google's paper bigtable: a distributed storage system for structured data. Hbase is an open-source implementation of Google bigtable. It uses hadoop
When running commands in Linux Shell, each process is associated with three open files and uses file descriptors to reference these files. Because the file descriptor is not easy to remember, shell also provides the corresponding file name.
Standard
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.