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
#!/bin/bashEcho"Enter The old IP:"$1Echo"Enter The new IP:"$2if[[ $1==""]];thenEcho"Usage: + $ Enter the new ip:$1"Echo"Usage: $ Enter the old ip:$2"Exit0FiI=0 forLineinch' Ls/etc/sysconfig/network-scripts | Grep-e"Ifcfg-em|ifcfg-eth"` Dostrip= '
Serial number
Task
Command combination
1
Delete a 0-byte file
Find. -type f-size 0-exec rm-rf {} \;Find. Type F-size 0-delete
2
View processes, sorted by memory from large to small
PS-E-O "%c:
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
A point set is given to find the maximum Triangle Area of the vertex in the point set. We know that the three points of the Triangle must be on the convex hull. After finding the convex hull, we cannot enumerate it. Because N is a large question,
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,
In the shell command terminal, CTRL + N is equivalent to the downward direction key, and CTRL + P is equivalent to the upward direction key.You can use them or the arrow keys in the Command terminal to quickly find historical commands. This is also
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
Note: To use this shell, you must first successfully create the memcache environment 1 and create the memcached file and permission [email protected] ~] # Touch/etc/init. d/memcached [[email protected] ~] # Chmod + x/etc/init. d/memcached2 write the
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
Learn shell exercises
Check whether the/tmp/lzz directory has the read/write permission. If not, add the permission.
#!/bin/bash#name: testdir.sh#authro: orangleliu#date: 2014-08-03#version: v1.0#===================TestDir="/tmp/lzz"#==============
Execute another shell script in the shell scriptYou can execute another shell script (or non-executable file, mainly used to obtain the value of some variables) in one shell script :. file name (including path) or variable = file name (including
Hbase is a distributed, column-oriented open source database. Its implementation is based on Google's bigtable theory and hadoop HDFS file system. Hbase is different from general relational databases (RDBMS ). Hbase is a column-based database
Part 1 simple common commands
1. Date command
2. Display calendar Cal
3. display the current directory pwd
4. Switch the current working directory
By default, the main directory of a Super User is/root, while that of a common user is the same
BASH Shell has an extglob option. After the shell is enabled, five pattern matching operators can be identified to facilitate file matching.
Method:
Run shopt command: shopt-s extglob
Close method: shopt-u extglob
When this feature is enabled,
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
Why shell script classification: Linux Shell script learning 78 people read comments (0) the add-to-favorites shell script task job s h e l script saves a lot of time in Processing Automatic loops or large tasks and is powerful. If you have a
Answer 1:The shell is a typical UNIX program. It reads commands from the standard input and prints something on the standard output. This is simple and good.
The points is: In a graphical environment (like gnome or KDE) a program cannot just write
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