This article explains tail command with most common options. The linux tail command does something like its name. It displays the last few lines of a file. It is mostly used for viewing log file updates as these updates are appended to the log files.
With a file name as argument, it displays last 10 lines for that file |
|
If you do not want to print the headers, you can use quiet mode with -q or –quiet or –silent option. |
|
Print last K number of lines |
|
View a growing file to check some changes being made at the end of the file |
|
terminate after some process with Process ID PID dies with –pid=PID option. |
|
Filtering the tail output with grep |
|