How To View Log Files In Ubuntu Linux

If you are able to read and understand the system log files, then you can easily troubleshoot many issues with almost all Linux based systems. Linux saves almost every piece of information about different applications and processes in log files. You can find all the log files in /var/log directory. Only a few out of many log files may be of interest to you, for example, one of the important log files is the messages file which saves general system logs, so if you are having any problem with your system you can view this file to get an idea of the problem. Let me share two commonly used ways to view log files in Ubuntu.

Method 1: Use Log File Viewer

Log File Viewer is the default utility of  Ubuntu that lets you view logs in the graphical interface. It can be launched from System > Administration > Log File Viewer. Once launched, it will show you the list of all the available log files on the left sidebar and by clicking on any log file its contents are displayed in the main window. For example, the following screenshot shows my messages file in Log File Viewer.

View in gallery

Method 2: Command Line Method

You can also view log files from terminal by running the following simple command. It is useful for those who administer remote Ubuntu servers and don’t have graphical end of the server available.

tail -f /var/log/messages


–>x3Cscript async src=””>x3C/script>x3Cscript>x3C/script>’);

قالب وردپرس

About Alyse Kalish

Alyse Kalish
As an Associate Editor for The SalesJobInfo, Alyse is proud to prove that yes, English majors can change the world. She calls many places home, including Illinois where she grew up and the small town of Hamilton where she attended Colgate University, but she was born to be a New Yorker. In addition to being an avid writer, Alyse loves to dance, both professionally and while waiting for the subway.

Leave a Reply

Your email address will not be published. Required fields are marked *