2016-1-30 Linux Basic Learning 4

Source: Internet
Author: User

Section:
Directory Management: Ls,cd,pwd,mkdir,tree
File Management: Touch,mkdir,rm,cp,mv,stat,nano
Date Time: Cal,date,clock,hwclock

View text : Cat,tac,more,less,head,tail

Command Terminator: Ctrl + C

Cat: Connect and display (header to tail)
-N: Numbering each line when displayed
-E: Displays the line terminator for each line (the line terminator for the Linux system text file is "$")
Tac:cat: Connect and display (tail to header)


650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7A/9A/wKiom1asxiODwtwzAACXm-5jYxI928.png "style=" width : 650px;height:631px; "title=" QQ picture 20160130205831.png "alt=" Wkiom1asxiodwtwzaacxm-5jyxi928.png "height=" 631 "hspace= "0" border= "0" vspace= "0" width= "650"/>


650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7A/99/wKioL1asxpCjjD2gAAAjV_sY8Zg693.gif "title=" Qq20160130211136.gif "alt=" Wkiol1asxpcjjd2gaaajv_sy8zg693.gif "/>

Split screen display: More,less
MORE: Turn backwards
Flip Screen:
Turn back one screen: space spaces (turn to the end and exit)
Turn One screen forward: b
Turn back one line: Enter
Turn One line forward: K
Less: (man is viewed with less)
Flip Screen:
Turn back one screen: space spaces
Turn One screen forward: b
Turn back one line: Enter
Turn One line forward: K
Find:
/keyword: from front to back
N: Next
N: Previous
? KEYWORD: from back to forward
N: Next
N: Previous
Exit: Q
Head
-mont: View Top N rows

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7A/9D/wKiom1auBKKh0sw7AAAlWVe9jmY787.png "title=" 4.png " alt= "Wkiom1aubkkh0sw7aaalwve9jmy787.png"/>

  -f: Monitoring a file
           View the end of a file without exiting, waiting for the new content appended to this file to appear         

650) this.width=650; "style=" width:600px;height:333px; "src=" http://s4.51cto.com/wyfs02/M00/7A/9D/ Wkiom1aubr-wjslsaaa2a4au5sc912.gif "title=" 5.gif "alt=" Wkiom1aubr-wjslsaaa2a4au5sc912.gif "height=" 333 "hspace=" 0 " Border= "0" vspace= "0" width= "(/>650) this.width=650; src=" http://s4.51cto.com/wyfs02/M01/7A/9D/ Wkiom1aubr-awel4aaaew0ddxda280.gif "style=" width:600px;height:161px; "title=" 6.gif "alt=" Wkiom1aubr-awel4aaaew0ddxda280.gif "height=" 161 "hspace=" 0 "border=" 0 "vspace=" 0 "width=" ""/>



Text processing : Cut,jion,set,awk

Text file
Tom:12:male:2016/01/30

Field 1 2 3 4
Cut
-D: Specifies the field delimiter, which is the default space
-F: Specify the fields to display
Discrete notation:-F 1,3 Displays fields 1 and 3
Continuous notation:-F 1-3 Displays fields from 1 to 3


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7A/9A/wKiom1asxmPDQ2I6AAC06O6fx8I031.gif "style=" float: none; "title=" 1.gif "alt=" Wkiom1asxmpdq2i6aac06o6fx8i031.gif "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7A/9A/wKiom1asxmPBf4I4AAAw-YY3Dgs372.gif "style=" float: none; "title=" 2.gif "alt=" Wkiom1asxmpbf4i4aaaw-yy3dgs372.gif "/>

Text sort:
Sort
-N: Numeric sorting
-R: Descending sort
-T: Specify field Delimiter
-K: Specifies which field to sort for the keyword
-U: The same row is displayed only once after sorting
-F: Ignore character capitalization when sorting

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7A/9D/wKiom1auBbCzAk8vAAB33kf7U2g000.gif "title=" 7.gif " alt= "Wkiom1aubbczak8vaab33kf7u2g000.gif"/>650) this.width=650, "style=" float:left; "src=" http://s1.51cto.com/ Wyfs02/m01/7a/9d/wkiom1aubbcgginjaaav0oaixna154.gif "title=" 8.gif "alt=" Wkiom1aubbcgginjaaav0oaixna154.gif "/> 650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7A/9C/wKioL1auBfyCkvAlAABup82u8xk862.gif "title=" Sort1.gif "alt=" Wkiol1aubfyckvalaabup82u8xk862.gif "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7A/9C/wKioL1auBf3CUccwAAB-K5hA6GU905.gif "title=" Sort2.gif "alt=" Wkiol1aubf3cuccwaab-k5ha6gu905.gif "/>650" this.width=650; "style=" WIDTH:349PX;HEIGHT:329PX; " Src= "Http://s5.51cto.com/wyfs02/M00/7A/9D/wKiom1auBbGDYL6xAAAdjnzx8Rs733.gif" title= "Sort3.gif" alt= " Wkiom1aubbgdyl6xaaadjnzx8rs733.gif "height=" 329 "hspace=" 0 "border=" 0 "vspace=" 0 "width=" 349 "/>

Uniq: Adjacent and repeated display only once
-C: Shows the number of rows in a file that repeats
-D: Show only duplicate rows




650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7A/9D/wKiom1auB26x4FAnAAAV3NafBAU511.gif "title=" Uniq1.gif "alt=" wkiom1aub26x4fanaaav3nafbau511.gif "/> 650" this.width=650; "style=" Width:228px;heig ht:300px, "src=" Http://s5.51cto.com/wyfs02/M01/7A/9D/wKiom1auB4Szfq4XAAArgHhGSKA049.gif "title=" Uniq2.gif "alt=" Wkiom1aub4szfq4xaaarghhgska049.gif "height=" hspace= "0" border= "0" vspace= "0" width= "228"/>
File Statistics: WC (Word count)
-L: The longest line contains several characters
-L: Show only the number of rows
-M: Displays only the number of characters
-W: Displays the number of words
-C: Show only the number of bytes

Character processing Commands: tr--convert or delete characters (processed one by one)
TR option Character Set 1[character Set 2]
Eg:tr ' AB ' AB '
-D: Delete all characters that appear in the character set (one character set is enough)

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7A/9D/wKiom1auB-CDtjoQAAAbFJ1H-g0932.gif "style=" float: Left; "title=" Tr1.gif "alt=" Wkiom1aub-cdtjoqaaabfj1h-g0932.gif "/>




650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7A/9C/wKioL1auCNOylrFlAAAVbWBwYBk109.gif "title=" Tr3.gif "alt=" Wkiol1aucnoylrflaaavbwbwybk109.gif "/>


650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7A/9D/wKiom1auCJ-j15c5AAC4OfQfskM394.gif "title=" Tr2.gif "alt=" Wkiom1aucj-j15c5aac4ofqfskm394.gif "/>

This article is from the "11160930" blog, please be sure to keep this source http://11170930.blog.51cto.com/11160930/1740442

2016-1-30 Linux Basic Learning 4

Related Article

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.