The following screen illustrates the results when viewing logfiles.
I am a new Linux user and would like to know where are the log files located under
Debian/Ubuntu or CentOS/RHEL/Fedora Linux server?
How do I open or view log files on Linux operating systems?
Almost all logfiles are located under /var/log directory and its sub-directories on Linux.
You can change to this directory using the cd command. You need be the root user to view or access log files on Linux or Unix like operating systems. You can use the following commands to see the log files:
- less command
- more command
- cat command
- grep command
- tail command
- zcat command
- zgrep command
- zmore command