650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7E/AC/wKiom1cGe1ui4oqIAABm6P93Pb8114.jpg "height=" 142 " Width= "192" alt= "Wkiom1cge1ui4oqiaabm6p93pb8114.jpg"/>
Shell script to today, I can only kept
Delete"Ctrl" + "D" removes the character at the cursor location equivalent to VIM x or DL"Ctrl" + "H" removes the character in front of the cursor, which corresponds to the HX or DH in vim."Ctrl" + "K" removes all characters after the cursor
First, the basic knowledgeHere you'll learn about shell fundamentals and some of the knowledge points.Concept: The shell is the user interface of the system and provides an interface for users to interoperate with the kernel. It receives the command
^ matches only the beginning of the line$ matches end of line only* A single character immediately after the *, matching 0 or more of this single characters, it can also be a sequence. You can use-to represent a range of character sequences within []
Learning from the previous articles, we learned the basic syntax of the shell. In the actual operation of Linux, we often see the command will have many parameters, such as: Ls-al, and so on, then how this parameter is handled? Let's take a look at
In operation and maintenance work, we should analyze the log of back-Office system frequently, and provide the basic data for the monitoring result by grasping the key word information in the log and counting the fetch results.The following shell
Shell Common ScriptsAuthor:headsen Chen 2017-10-17 15:36:17Personal original, reproduced please indicate, otherwise, legal liability shall be investigated1,vim name.grep.sh2,cat tellme.sh3,cat idcheck.sh4,cat case.shNote: The file name is called in
To test the shell's looping nesting syntax1[Email protected] test]#VIXunhuanqiantao.SH 2#!/bin/Bash3 #程序功能描述:4 # test Loop nesting5 #作者: Lone boat Point6#版本:1.07#创建时间: .-Ten- A Geneva: $:
Comm CommandUsage scenarios:Requires a common list of records for two files or a list of records that appear only in the first file but do not appear in the second fileHow to use:Must be sorted first, that is, sortParameters1 shows columns in the
Linux often need to delete user actions, manual operation to perform Userdel operation can, if the deletion fails according to the error prompt action. But what if the script needs to invoke the Delete user action? Use the following example to
Steps to create a shell program:First step: Create a script file. Sh.Second step: Grant permissions so that it can execute chmod u+x. shStep three: Execute./example or SH exampleShell structure:1. #! Specifies the shell that executes the script2.
Log files are one per day. A keyword in the statistics log file that gets the number of views per day. Save the number of times to the TXT file.Save the date in the TXT file as well.Enter a start date and an end date to count the number of times per
Data Flow redirection: is a command that should appear on the screen after the data transfer to other places.Standard input (stdin): code 0, using Standard output (STDOUT): Code 1, using > or >>;Standard error Output (STDERR): Code 2, using 2> or 2>>
The first shell program runs, tutorial from: http://jingyan.baidu.com/article/8cdccae947f83e315413cd05.htmlThe code is as follows:1 #!/bin/sh2touch a.txt3sleep4 echo"testtesttesttest">>a.txtI don't know why. Tip: MSYS2 terminal has stopped working.
MY.CNF configuration format is as followsVI my.cnf[Client]port=3306Socket=/tmp/mysql.socket[Mysqld]port=3306Server-id=1Datadir=/usr/local/mysql/data[Mysqld_safe]port=3306More parsemy.sh#!/bin/bashcnf=$ (CD ' DirName;p wd) "/MY.CNF"#得到区块数组g_sec= ('
Shell script is a "program" written using the shell's function, which uses plain text files to write some shell syntax and instructions (including external instructions), with regular expressions, pipeline commands, and data flow redirection. In
1. View Memory usageFree-m2. View drive Information usageFdisk-l3. View CPU and Memory usageTop4. View CPU Information commandsCat/proc/cpuinfo5. View memory InformationCat/proc/meminfo6. Modify the IP
To find files that end in INI[[email protected] app]# Find/-name "*.ini"/app/myblog/config.iniEXEC explained:The-exec parameter is followed by command, which terminates with '; ' To end the sign, so the semicolon behind this command is indispensable,
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