Monday, November 16, 2009

Linux monitor file updates

This is a very handy command, mostly if you are doing some system changes and you need to monitor a log file.

Like me, many people know it's possible but have forgotten how. Simply use tail!

tail –f <file>

For those who didn't know, it checks for new lines in the file and prints them to standard output.
Nice, isn't it?

No comments:

Post a Comment