Checking log files can be such a pain sometimes, especially if you’re doing it regularly. For example, when I’m coding up a web app, I find it useful to keep an eye on the Apache error logs with something like this :
However, if I add the option -f to tail, it will follow the file I’m reading and give me live updates as and when new lines are added.
Instead of exiting after it has read the file, tail will now stay open and update new lines in the terminal as they appear. To exit, just use ctrl-c
This will work with any other text files that get updated, for example, if you like to know when people are viewing your page, live, check out the access logs with :
Tags: LinuxPosted on 23 August 2009. blog comments powered by Disqus
How to monitor the progress of a dd process, even after it has started.
Monitoring frequency drift on the RTL SDR dongle
High entropy passwords are serious business! Here some little helpers to create better ones.
Running Linux and need to look busy quick? Try this little bit of command line fun :)
Bash scripts and command line examples are often littered with ampersands. Here's what they do.