How to watch your log files in Ubuntu
When you have logs that you want to review in Ubuntu a common tool that is used is called tail. To look at your logfile you would use the command:
tail [filename]
That will dump the entire file to your shell. If you only need the last few lines you can pass a switch with a number and it will show only that amount of lines. I often use:
tail -500 [filename]
If you want to watch the log files live so you see any updates as they come in use the -f switch:
tail -f [filename]
Anonymous comments not allowed. Please login or create an account to leave a comment.