Sunday, December 2, 2007

Watching a text file

Before, I used to open the log files to see what new stuff were added. If the log file was long, I'd waste a good 10 seconds to open it and to go to the bottom.

To see all the changes made to a text file as they happen, you can tail it:

tail -f textfile