The built- in command (build-in commands) is the command of the shell Build-in, and when built-in commands are used, the shell executes directly without creating a new child process. Built-in commands are used to create functional or convenient
1. {} curly braces:usage One: Wildcard extensionEg:ls my_{finger,toe}sThis command is equivalent to a combination of the following commands:ls my_fingers my_toeseg:mkdir {Usera,userb,userc}-{home,bin,data}we will get Usera-home, Usera-bin,
SED is designed to handle all editing tasks at once, particularly efficiently, saving users a lot of time, and SED is suitable for the following three scenarios:1. Edit files that are too large relative to the interactive text editor;2, editing
Linux Shell Script Raiders notesChapter III: File Operations1, the production of any size file [[email protected] dd_test]#[[email protected] dd_test]# dd If=/dev/zero of=junk.data bs=1k count=1010+0 Records in10+0 Records out10240 bytes (Ten kB)
(1) Distributed File systemAs the amount of data is increasing and the scope of an operating system is not enough, it is allocated to more operating system-managed disks, but it is not easy to manage and maintain, so a system is urgently needed to
I. OverviewThe read command receives input from a standard input (keyboard), or other file descriptor. After the input is received, the Read command puts the data into a standard variable.Ii. examples of use (here are just a few common options)1.
Shut down the system: shutdown [options] [TIME] [warning message]-K does not really shut down just send a warning message to all users-R restart immediately after shutdown-H does not restart after shutting down the machine-F Quick shutdown without
Convert the 0024.b20b.693f address into a 00:24:b2:0b:69:3f1. Dot-delimited[Email protected] ~]# echo "0024.b20b.693f" | Sed-r ' s/\b (..) (..) \b/\1:\2/g;s/\./:/g '00:24:b2:0b:69:3f2. If the colon is separated, convert the 0024:b20b:693f to 00:24:b2
Linux under Install configuration msmtp and mutt send mailAuthor: In-field Date: December 11, 2014 Comment (0) View CommentsLinux under Installation configuration msmtp and MuttLinux has the need to send mail, mail is uncertain, because many mail
1. basename is the name left after the directory is removed .example:shell>temp=/home/temp/1.testshell>base= ' basename $temp 'Shell>echo $baseThe result is: 1.test2. dirname is to fetch directory example:shell>temp=/home/temp/1.testshell>dir= '
HBase is an open source implementation of Google BigTable, which leverages Hadoop HDFs as its file storage system, leverages Hadoop MapReduce to handle massive amounts of data in HBase, and leverages zookeeper as a collaborative service.1.
1-echo ' Date ' +%y-%m-%d%h:%m:%s "'2014-11-13 15:06:262-echo ' Date ' +%y-%m-%d%h:%m:%s "'14-11-13 15:06:51Note: "+%y-%m-%d%h:%m:%s" caseThe given format controls the output, and the sequence is interpreted as follows:Percent of a text%%a of the
Shell Tutorial Shell echo commandShell variablesWhen defining a variable, the variable name does not have a dollar sign (required for variables in the $,php language), such as:Your_name= "w3cschool.cc"Note that there can be no spaces between the
When we write functional scripts, we tend to place functions that are similar in operation or similar in parameters into the same shell script, which is easy to manage, easy to maintain, and clear. In this case, the usual approach is to define all
ArrayConceptA pair of parentheses indicates an array, and the elements of the array are separated by a "space" symbol in the form: array= (value0 value1 value2 value3 ...), when the subscript of the array defaults to 0Basic operations1.arr= (1 2 3 4
Classic Sort algorithm-Hill sort Shell sortHill sort Shell Sort is an improvement based on the insertion sort , which is also divided into two parts,The first part, Hill sort IntroductionThe second part, how to choose the keyword, the key is to
Shell ProgrammingA. for Loop
Build List {start number: End number}
Command generation list ' seq [number of start] [step length] End number '
For L in {1..5};d oFor L in ' seq 5 ';d o1 to 100 of the cumulative sum and1
Shell-find error parsing, shell-find Parsing
I have written an article about how to use shell to regularly clear expired files. In fact, the simple find command is used.
After my colleague adopted the script, he encountered several errors when
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