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