Review:
Last blog we are talking about several common commands for handling directory classes, namely LS, CD, pwd, mkdir, RMDIR, CP, RM
Links: http://ccschan.blog.51cto.com/11854461/1841723
This article mainly refers to the file view class commands, in Linux, these commands are the most basic, but also must be mastered.
File view class commands, mainly have the following:
• Cat Show file contents starting from first line
TAC Displays the contents of the file in reverse order from the last line, which is written backwards with the TAC command
• NL when displayed, the output line number
more the contents of a page of the display file
less is similar to the more command, but better than the more command, the less command can page forward
Head look at the first few lines of the file
tail Only a few lines at the end of the file
Cat command:
Cat commands are often used to view the contents of a file
Command format:
Cat [-abentv] FILENAME
Option parameters:
-A: A consolidation option equivalent to VTE, which lists some special characters rather than blanks
For example:
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/86/7D/wKiom1fAWMfh7MS2AAJZ1xB7G3w630.jpg "title=" Cat-1.jpg "alt=" Wkiom1fawmfh7ms2aajz1xb7g3w630.jpg "/>
-B: List line numbers, list only line numbers for non-blank lines, and blank lines do not display line numbers
For example:
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/86/7D/wKiom1fAWbqzo_cSAAB9BA6CkL4895.jpg "title=" Cat-2.jpg "alt=" Wkiom1fawbqzo_csaab9ba6ckl4895.jpg "/>
-E: Displays the end of the break character $
For example:
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/86/7C/wKioL1fAWg2TIfH7AABvV9WMGjo321.jpg "title=" Cat-3.jpg "alt=" Wkiol1fawg2tifh7aabvv9wmgjo321.jpg "/>
-N: List line numbers, along with blank lines also show line numbers, unlike the-B option
For example:
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/86/7D/wKiom1fAWm-xTCUjAAB-GBPcBr0652.jpg "title=" Cat-4.jpg "alt=" Wkiom1fawm-xtcujaab-gbpcbr0652.jpg "/>
-T: Display the [tab] key in ^i
-V: Lists some special characters that can't be seen
Not to be continued!!
This article is from the "Ccschan" blog, make sure to keep this source http://ccschan.blog.51cto.com/11854461/1843136
Basic Linux Basics Command----2