Posts Tagged With: tail

Important Logs

Tagged with: , , , , , , , , ,

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


tail /var/log/messages
tail /var/log/dmesg
2 Comments »

First Two Lines

Tagged with: , , , ,

View first two lines of a file


head -2 file

tail -2 file # for last 2 lines
No Comments »

Tail Command in Follow Mode

Tagged with: , , , ,

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


tail -f /var/log/messages
No Comments »

Watch a Log File for Changes using tail

Tagged with: , , , , , ,

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


tail -f log/development.log
1 Comment »