Shell's characteristics: input and output redirection and pipingI/O: device, registerI/O portLinux: All FilesName resolutionDocument descriptor (HANDLE): File descriptor, FD is the kernel used to track the current fileInput: standard input,
1.Scripting purposes Automate the deployment of your environment and combine packages and deployment scripts into one file to avoid scripting and file separation. 2. Experimental Environment(1) Linux EnvironmentCentOS 7.4(2) package[email protected]
There are two types of programming languagesStrong type: such as C language. The data has a specific type that is declared before it can be used. Data operations must conform to type requirements (e.g., string type data cannot be arithmetic directly
Shellgawkgawk Options
-f Specifies the field delimiter for delimited data fields in a row
-f Specifies the handler's script name
-V Var=value defining variables in the Gawk program
-MF N Specifies the maximum number of rows to
You can convert text results to neat tables, upper and lower commands: ColumnParameters to use:-T: Table with a space interval by default-S: Required with-t use, specify delimiter?Monitor Ogg named field alignment
[[Email protected]
Conditional judgmentIf condition 1;thenCOMMANDElif condition 2;thenCOMMANDElseCommand (:): Indicates that pass does not execute any commandFiRead user input for data judgment1 Echo-N"Enter your number:"2 Read Userinput3 Expr$userinput
Scenario One: Modify environment variables for Linux serversWith Linux, there is a. bash_profile configuration file under the user root, which is only valid for the current user. Modify the/etc/profile file if it is valid for all usersUse the LS-A
1. The common syntax for conditional testing is as follows1, test expression2. [Test expression] #两边需要有空格3, [[Test expression]]4, (test expression))DescriptionThe first and second are equivalent, the third is the extended Test command, and syntax 4
English original link: https://www.lopezferrando.com/30-interesting-shell-commands/1. Monitoring commands (run every 2 seconds)"ls -larth"2. Kill the program with one portsudo fuser -k 8000/tcp3. Limit the memory usage of the following
Execute the shell script with Jenkins and execute a command:2Tips:[ADB] $/bin/sh-xe/users/xxxxx/tools/apache-tomcat-8.5.30/temp/jenkins8525959692743554347.sh+ adb shell input KeyEvent 26/users/xxxxx/tools/apache-tomcat-8.5.30/temp/jenkins852595969274
[From]Https://www.zmrbk.com/post-2030.html40952771My understanding is that if the problem described in title occurs, it is because of the combined effect of using different shell programs and corresponding stty to set the corresponding
Hell Command Application Exercise
①/ETC/PASSWD 'ETC/PASSWD contains a row for each user account, containing seven fields separated by a colon (":"): Login name, selected encrypted password, Word user ID, Word Group ID, username and comment
8.10 Shell Special Symbol Cut command8.11 Sort_wc_uniq Command8.12 tee_tr_split Command8.13 Shell Special Symbol
Shell Special Symbols
* represents all characters for wildcards
? is a single character
is the
Op-ExpressionsThe expression is contained in or (()) or [] within,
An arithmetic expression:(())
((expression))
This expression is calculated according to the rules of arithmetic calculation. Equivalent to let expression .
To master a language, you must first master its grammar. As in C, the shell has its own syntax.VariableAs a rule, shell variables usually begin with an underscore, consisting of letters, numbers, and underscores of any length. There are two types of
Users of the Linux server should know that when Linux is in use, the available memory will slowly become smaller over time, and it may eventually reach 80%-90%, which requires us to intervene manually to release the Soul village.This article will
Shell variable type: (Divided into two categories)Environment variables (global variables) and local variables###### #一般环境变量都为大写 #########Three symbols of the variableNo quotation marks: usually consecutive strings, numbers, paths, etc. can be
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