Wednesday, May 14, 2008

use tail to watch a log dynamically

Want to know how to watch a log file? still using cat,more, vi, or even worth, gedit to watch a log file? then this is the right one for you! tail

use -n to designate lines of log you want to see.

tail -F -n 5 /var/log/daemon.log


more details see man tail

No comments: