This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage.
# Shows the last 10 lines of a file tail /var/log/<logfile> # Shows the first 5 Lines of a file head -5 /var/log/<logfile> # Live Logfile View for the last 10 Lines tail -f /var/log/<logfile> # Show the whole content of a file cat /var/log/<logfile>
Possible other useful commands:
zcat – Displays all the contents of logfile.gz
zmore – See the file in pages, without decompressing the files
zgrep – Search inside a compressed file