Tag: tail

Important Logs

First show system events. Second command show events inherent to the process of booting kernel. tail /var/log/messages tail /var/log/dmesg

First Two Lines

View first two lines of a file head -2 file tail -2 file # for last 2 lines

Tail Command in Follow Mode

View in real time what is added to a file. -f stands for Follow tail -f /var/log/messages

Watch a Log File for Changes using tail

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