I used to just view logs by doing "less /var/log/messages". But here is a more efficient way of viewing logs.
To show error on the /var/log/messages
# grep error /var/log/messages OR
# grep error /var/log/messages less
If you wish to view the contents of log in real time
# tail -f /var/log/messages grep error
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment