Friday, January 22, 2010

Using The Command Line To Solve Problems

I ran across this neat set of commands that when run as root will show the output of /var/log/messages in real time. This could be very helpful for an issue that pops up only under certain conditions. Yes the same errors will be in the logs, but now you don't have to dig it out. Here is the command and it must be run as root:
tail -f /var/log/messages &
Try this in a terminal window and leave it open while you do what ever and come back to it to see what is in there. I certainly don't ever claim to know the command line well but I'm not afraid to learn. I want to thank BillWho in the Craigslist Linux forum for sharing this command.

No comments:

Post a Comment

Techbits reserves the right to not publish comments but will only exercise this right if a comment is vulgar, completely off-topic or spam.