Linux command line utility for watching log files live?
What's a good linux command line utility for watching a log file live? It's probably obvious but I totally forgot it.
Solution 1:
There are two things that leap immediately to mind...
tail -f
or
multitail
Solution 2:
Assuming you are in the same folder as the logfile:
tail -f logfilename
Solution 3:
If you want to watch a specific aspect of your file, say just IPs in an access log, you can do :
tail -f your_file | cut -d' ' -f1 | logtop
assuming that IPs are the first column of your log file.