2017/07/21
Ls-l-dtouch Create file mkdir directory 1 directory 2 can create multiple directories at once echo printout content echo Context > file will input context into the file, which is a > overwrite, two > is append cat view file cat >>file<< start of the context Terminator appends the context content to file in Cat >>file enter after entering the content, and finally enter and CTRL + C end input, append content to Filecp-a file1 File2 file 1 homemade to file 2-a =-pdr P hold attribute D is directory r is a recursive RM file Delete file-rf F Force Delete file R is recursive delete rmdir forld remove empty directory view command Instructions man command--help [[email protected] ~]# mkdir-p/data/c-p recursion creates a file or directory [[email protected] ~]# lang=en temporarily adjusts the character set (when a code break occurs) to copy an existing file, Do not prompt for direct operation [[email protected] ~]# \cp/tmp/a./a----add [[email protected] ~]#/bin/cp/tmp/a before the command./a---- Alias alias alias Unalias command---------------------------------------do not display the AAAAAAAAA content in a cat atestliyaoaaaaaaaaa[ [email protected] ~]# grep-v aaaaaaaaa a------v excluding content, if you want to display without parameters testliyao[[email protected] ~]# head-2 a----- Show the first two lines testliyaohead display the file header,-line shows how many rows tail show the number of lines at the end of the file tail-the number of rows without parameters is the default 10 rows----------------------------------------Musketeers 1. Awk[[email protected] ~]# awk/[^oldbou]/atestliyao[[email Protected] ~]# awk/oldbou/a OLDBOU2. SED takes various contents [[[email protected] ~]# sed-n/oldbo/p a oldboup is printing n is canceling the original output [[email protected] ~]# sed/^liy/d a testol Dboud is Del, which deletes the liy and prints the output, which can be represented with a regular ^ with what begins with 3. grep core command, filter content by row-V excludes content from display, does not add parameters to display what you want to see shortcut keys: Tab command Completion CTRL + C terminate current task or command ctrl+d exit Current user environment, related to exit, logout
LInux Learning Notes