Next: Finding the differences between
Up: Other useful commands
Previous: Sorting files
Contents
The command tail <filename> displays the last 10 lines of
the file <filename>. The command tail -n <filename> prints the last
n lines. A neat option is tail -f <filename>, which ``tails'' the end
of the file; i.e., as the file grows, tail displays the newest line.
This can be handy for monitoring a file being written by a running program.
Amit Jain
2013-04-22