Linux File Contents Command There are many commands which help to look at the contents of a file. Now we'll look at some of the commands like head, tac, cat, less & more and strings. We'll discuss about the following file contents given in the table:
Commands |
Function |
head |
It displays the beginning of a file. |
tail |
It displays the last last part of a file. |
cat |
This command is versatile and multi worker. |
tac |
Opposite of cat. |
more |
Command line diaplays contents in pager form that is either in more format. |
less |
Command line diaplays contents in pager form that is either in less format. |
|