13 Mar

First show system events. Second command show events inherent to the process of booting kernel.


tail /var/log/messages
tail /var/log/dmesg

13 Apr

View first two lines of a file


head -2 file

tail -2 file # for last 2 lines

21 Feb

View in real time what is added to a file. -f stands for Follow


tail -f /var/log/messages

02 Sep

This command will let you watch a log file for changes as soon as they happen.


tail -f log/development.log