Thursday, October 15, 2015

Scentific Linux / CentOS: investigate system error

Some simple commands to check system errors in centos or scentific linux:

To check the list of errors:
> grep -i error /var/log/messages

To check login:
> tail --lines=200 /var/log/secure

To check when the system is shutdown:
> grep -i shutdown /var/log/messages

Under centos the /var/log/messages is equivalent to /var/log/syslog in Ubuntu

No comments:

Post a Comment