PID: ID of the process in the systemCPU%-current instantaneous so use CPU utilization#THR-the number of threads currently used by the programUID-User ID running the current processName-Program name Android.process.mediaVss-virtual Set Size Virtual
1. pwdPWD: Displays the absolute path of the current directory2. cdCD Document: Go to subdirectory cd/usr/local/lib: Go to the specific directory CD.: Return to Parent directory CD/: Return root directory3. mkdirmkdir directory: Creating
Shell script (vi)(2) awkA, awk programming mode#awk编程模式分三个阶段: Execute code Snippet before reading input file (identified by the BEGIN keyword)Execute code snippet after #读取输入文件时执行代码段, reading input file (identified by end keyword)B, pattern matching#
The variables of 0.shell are different from the environment variables, and the user environment area exists. Variables are assigned in the following way: Variable_name = variable_valuea= "Hello" $a the value of a on the variable, and several Linux
Setting environment variables#Set java_home=/root/deploy_ws/jre1.8.0#PATH = "$PATH:/home/user/bin"Calculate the length of a string#var = "12345"#echo ${#var}Shell currently in use#echo $SHELLQuerying the role of the current user#echo $UID//If root
1. cat cat is used to read, display, or concatenate the contents of a fileCat file.txt //show The content of file.txt shows the contents of the file.txt in cat file.txt file1.txt .... Show the content of File.txt file1.txt .....
1.7 arrays and associative arrays
An array is a very important part of Shell scripting, and it uses indexes to store multiple independent independent data as a collection. An ordinary array can use integers only as an array index, and
Learning cycle, see a lot of for,while, or until, and select with less, here is a little summary of the next select this cycle.Basic structure:Select VALUE in LISTDoCOMMANDDoneAnd the reality out of the structure is probably a number before the
1.1 Introduction
The design of many Unix-like operating systems is breathtaking. Even today, decades later, UNIX-style operating system architectures are still one of the best designs ever. One of the most important features of this architecture
The ~/.SSH directory already exists on the default remote host. Execute the following script on your PC, enter the server user name and IP address, and log in without password the next time you log in.#!/bin/bashid_res_pub=~/.ssh/id_rsa.pubif [!-F "$
#!/bin/bashlocal_dir= '/tmp/test_huadan ' ip= ' 192.168.0.221 ' password= ' Lhm0125 ', des_dir= '/tmp/test_huadan ' list=$ ( Find $Local _dir-cmin-60) for i in $List do#echo $i if [-f $i] then expect This article is from the "Python" blog, so be
Basic arithmetic operations, as well as bitwise operations, can also be implemented in the shell.We have summed up the following points:1) Basic arithmetic operators: + 、-、 *,/, * * are supported, the last * * is a power operation;2) arithmetic
Recently the company is not very busy, so the idle time to read more about the shell of some things, because in the development test under Linux, know something about the shell is very helpful to yourself.about what a shell is, a shell of Linux that
Characters that use double quotesDouble quotes are an important part of the shellecho Hello echo"Hello World" Hello WorldHow to display: Hello "World"is the following command OK? $ echo "Hello" World ""Correct method: echo "Hello \"
1. How can I redirect the standard output and error output to the same location at the same time?There are two ways to achieve this:Method One: 2>&1# Ls/usr/share/doc > Out.file 2>&1The implication is that if a file exists, the result is output to
Shell-based variablesVariable typeShell variables include environment variables, location variables, pre-defined variables, and custom variables.Environment VariableShell environment variables are a type of Shell predefined variables used to set the
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