The commands for viewing the contents of a document are:
Cat TAC Head NL tail more less OD
The cat command displays the entire contents of the document, displaying only the last part when the document is large, so the cat command is suitable for viewing documents with less content. Optional-n Displays the number of rows (the blank line also displays the line number). -B Blank lines do not display line numbers.
TAC is opposite to cat display order
NL does not need to add the option-N to display the document's line number, NL does not display blank lines by default, to display blank line numbers Plus-B.
View larger documents with more and less, you can view content in Split screen
When the more command is entered, press ENTER to display the contents down a line, and press the space screen to display the contents.
More cannot go forward to flip
Q Exit View
Less in addition to more content also supports PageUp and Pagedown,home keys to return to the beginning of the file, end key back to the end of the file
/key to find the keyword, press N to find the keyword down. N Find keywords up
Head default View the first 10 lines of the file Head-3 file view the first three lines of the file, if head-n-100 file, the first 99 lines of the file is displayed
Tail By default view the end of the file Tail-3 file to view the end of the file three lines, if the Tail-n + 100 file, the file is displayed from 100 lines to the end
Tail-f files can view the dynamics of a file in real time, such as viewing the log file for changes
OD view binary files, od-t format files such as Od-t C/bin/ls are viewed in ASCII format/bin/ls
The strings command can view specific content, such as Strings/bin/ls
How to view the contents of a document under Linux