Posts Tagged With: log

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 »

Archive all files with a given extension

Tagged with: , , , , ,

Find all files with ‘.log’ extention and make an bzip archive


find /var/log -name '*.log' | tar cv --files-from=- | bzip2 > log.tar.bz2
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 »

last Command

Tagged with: , , , , , , ,

The last command shows a history of logins…


last
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 »