We use cookies to improve our services and provide a better experience. By continuing to use this site, you agree with our Cookies Policy.

More than 400 step-by-step articles to guide you through online project development.
HomeTutorialsHosting ServicesCloud ServersAll Tutorials

Common log files on a Linux system

Most of the systems log files can be found in /var/log directory. You can list them with a simple command:

ls -la /var/log

Some Linux log files:

/var/log/secure contains user authentication records.
/var/log/messages stores system messeges.
/var/log/httpd directory contains all apache related logs.
/var/log/boot.log file contains system boot logs.
/var/log/maillog stores mail server logs.
/var/log/mysqld.log contains MySQL server logs.

To view latest entries in log files use tail command.

tail -f /var/log/secure

Rate this Tutorial:
No CommentsLeave a Comment

Other (3)

Popular Keywords