DistributedNetworks DistributedNetworks


User Accounting   «Prev  Next»

View Logfiles Command in Red Hat Linux

The following screen illustrates the results when viewing logfiles.
Viewing Log files in Redhat

How Do I View Logs Files on Linux?

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?
Question: 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:
  1. less command
  2. more command
  3. cat command
  4. grep command
  5. tail command
  6. zcat command
  7. zgrep command
  8. zmore command