Live log files with ‘tail” command


Tail is a very import part of linux administrative tools. Apart from using it with a combination of script to achieve day to day goals “tail” can be used by itsef for some important administrative tasks. Observing live log files is one of those tasks. Tail by default only shows the last 10 lines of a file. In case of log file you can make it update “live” by using the “-f” extension. In linux systems by default all logs files are saved in “/var/log” to view a list of log files in this directory just type “ls -l /var/log/*.log”

2007-11-15-074607_1280x800_scrot

In our example we will use the syslog file and observe it in real time by typing this: “tail -f /var/log/syslog”

2007-11-15-073249_1280x800_scrot



Subscribe without commenting


Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.