Continous Monitoring of a Text File

| No Comments
Probably should have known this before now, but in any case: I found out that you can continuously monitor the output of a file using the "tail" command. In other words, if you use the command

tail -f <filename>
the program will output the last 10 lines of the file, and then it will continue output additional data as the file grows.  This is really handy, I found, when I needed to watch the output of genkernel.log while I was compiling my gentoo kernel.

Leave a comment

The site blog for indicium.us.
Linux Projects
Online Games
Unsung Linux Games

RSS Feed

Powered by Movable Type 4.21-en
and GNU/Linux


Creative Commons License
The content of this blog is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License. See my copyleft page for more details.