View Linux File Content (CAT, Tac, NL, more, less, Head, tail, OD)

Source: Internet
Author: User

Cat: displays text content starting with the first line

Tac: displays text from the last line

NL: displays the row number.

More: displays the file content one page at a time.

Less: similar to more, but better than more, you can flip the page forward

Head: only the first few lines

Tail: only the last few rows

OD: Read File Content in binary mode

Cat [-abentv]

-A is equivalent to the Integration parameter of-vet. It can list some special characters rather than blank spaces.

-B: lists the row numbers, but does not include blank rows.

-E: use $ to display the ending line break.

-N print the travel number together with the blank line

-T display the [Tab] button

-V: lists the unique characters that cannot be seen.

TAC (cat Reverse, reverse output)

More page by page (most commonly used, I think so)

The Space key indicates turning down a page

Enter indicates turning one row down

B Indicates turning back the page

/Word search characters

: F: display the file name and row number.

Q exit

Less page by page

The Space key indicates turning down a page

[Pagedown] indicates turning a page down

[Pageup] indicates turning up a page

B Indicates turning up one page

/Word search down characters

? Word search for characters

N

N

Q exit

Head [-N number] File

Tail [-N number] File

Od [-T type] File

-T: followed by various types

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.