Leave a Comment | Oct 12, 2010
Monitoring log files over SSH with Tail
If you have to do some debugging you might need to monitor a log file - without having to reload it every two seconds.
The solution is to log in to your server via SSH, and use the tail -f command, which follows changes as the file grows and prints them in the terminal.
So if your php log is located at /logs/php.log just type in
tail /logs/php.log -f
to stop it type in crtl+c