The AM PM command in the ADB shell, some of its own insights and translations for most official websites.First, the AM command, am full activity Manager, you can use AM to simulate the behavior of various systems, such as to start an activity, force
Shell common system Variable resolution: $ $ The name of the current script $n the nth parameter of the current script, n=1,2,... 9$* all parameters of the current script (excluding the program itself) $# the number of arguments to the current
pipelines are implemented " The previous standard output is used as the following standard input "Xargs is to achieve " to use standard input as a parameter to a command "Contrast:Ind/sbin-perm +700 |ls-lFind/sbin-perm +700 |xargs ls-lParameters and
The problem has been a long time, and has not been sorted out. Remember the last interview when asked how to bulk modify the host name of 1000 machines. Here is a file named 1.txt that is created in bulk for hello.First, install the expectYum
1.manAccess the manual pages stored on your Linux system. You can use the Man command to view a command.Eg:man ls man Mans2.cdSwitch directories. The path to the directory has an absolute path and a relative path.EG:CD. Switch to upper-level
4.1.3 Shell Process Control Statements If condition judgment StatementIf ( expression ) #if (Variable in Array)Statement 1ElseStatement 2FiCase one, test if the directory exists, does not exist then new (note that space must be between the brackets)
Declare declaring variable type declare [+/-] [option] Variable name-: Set the type attribute to the variable +: cancels the Type property of the variable-A: Declaring variables as arrays-I: declaring variables as integers-x: Declaring a variable as
This article from: http://www.cnblogs.com/puresoul/p/5092628.htmlPrevious jmeter Bean Shell Use (a) a brief introduction of the bean shell in the next jmeter, this article is a supplement to the above, the main summary of the several commonly used
Diffdiff file File1 to compare two different files-C display rows around the top and bottom-U uniformly output patches in a certain format-R comparison of files in two directoriesPatch File File.path Patching-B Plus-B backup source filesgrepgrep Key
Recently saw the shell script. The shell script has been used many times in a lot of ready-made kits. In short, the effect of this thing is to integrate a series of operations.• Integration makes a set of work more modular and standardized.• Batch
About SEQThe SEQ command is used to generate all integers from one number to anotherseq 1 5 Output 1-512345seq 5-1 1 Reverse Output 1-554321[[email protected] ~]# seq 1 2 //output 1-10 and output once every two digits 13579seq 9-2
This article will aim to implement regular automatic backups of the MySQL database, and introduce the perfect collaborative process between shell scripts and scheduled tasks. Where the shell script is responsible for the specific backup operation,
1. The most straightforward and straightforward judgmentWithout those if statements, directly shorten the amount of code.2. The variable is caused by "" quotation marksAs shown below:, you can get the result is NULL.#!/bin/sh a= if [!-n "$a"];
# awk ' Condition 1{action 1} Condition 2{action 2} ... ' File namecondition (Pattern):Generally use relational expressions as conditions x > 10 to determine if a variable x is greater than 10x>=10 greater than or equal to xactions
Cal Command: Date display
Cat/proc/meminfo: Memory usage Query
Free command: Memory detail Query
Arch command: CPU architecture displayDisplays the architecture of the current system, for example:#archx86_64
CAT/PROC/CPUINFO:CPU
Vim commandReplace:%s/aaa/bbb/%s/aaa/bbb/gRegular Expressions:^ Opening$ end[0-9] Number[A-z] lowercase[A-z] capitalization[^a-z] Non-lowercase{1,3} 1 to 3 times. Any single character, except \ r \ n* 0 times to several times? 0 times to 1 times+ 1
Linux+shell obtaining and copying the latest backup dataBefore we introduced some script configuration, today we introduce, using shell script How to copy the most recent files in the specified directory to the specified directory, we copy the files
Linux+shell acquiring and copying the latest data to remote devicesOur remote general copy of the data are created by the shared secret key, so that the copy of the words do not have to enter a password, specifically, I can refer to the previous
Using Sh-x or this bash-x, you can debug a script that outputs and outputs a state for each row while debugging, and It also shows the order in which the commands in the script are executed . You can also use set in the script to set the debug area.
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