LInux Learning Notes

Source: Internet
Author: User

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

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.