Basic Linux Basics Command----2

Source: Internet
Author: User

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

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.