Linux file View cat, more, less, tail

Source: Internet
Author: User

File Content Lookup
1.CAT Displays the contents of the file starting from the first line
2.TAC: Starting from the last line, you can see that the TAC is the write-down form of cat.
3.nl: When displayed, by the way output line number;
4.more: Page-by-page display of file contents
5.less: Similar to more, but better than more, it can page forward
6.head: Only a few lines
7.tail: Look at the end only a few lines
8.od: Read content in binary way

NL and Cat,tac are a one-time display of data in a breath to the screen

More

# More/etc/man.config
In more This run process, you can press the key to execute the result:
Space: Represents a page down;
Enter: represents a scrolling line;
/string: In the content that represents this content, query the string "string" down;
: F: Displays the file name immediately and the number of rows currently displayed;
Q: Immediately leave more, no longer display the contents of the file;
b or [Ctrl]-b: Represents the page back, this operation is only useful to the file, the pipeline is useless;

Less

# Less/etc/man.config
In less this run process, you can press the key to execute the result:
Space: Represents a page down;
[PageDown]: flipping down one page;
[PageUp]: Flip up one page;
Enter: represents a scrolling line;
/string: In the content that represents this content, query the string "string" down;
? string: The string representing the contents of this content, up query "string";
Q: Leave less at once and no longer display the contents of the file;
b or [Ctrl]-b: Represents the page back, this operation is only useful to the file, the pipeline is useless;

Tail

#tail/etc/man.config
#默认情况下. Show the last 10 lines
#tail-N 20/etc/man.config
#显示最后20行
#tail-N +100/etc/man.config
#列出100行之后的数据
#tail-F/etc/man.config
#持续检测内容, wait until the input [ctrl]-c will leave the tail named detection

Linux file View cat, more, less, tail

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.