Linux - How to access the system log using command line?

April 2018


I want to know which command line must I insert to access quickly the system log?


  • It is sometimes useful to know the command line which makes it possible to consult the log system.
  • You must use the command line:
    • tail -50 /var/log/syslog
  • This command line will display the 50 last lines of the system log (syslog).
Published by aakai1056. Latest update on July 11, 2011 at 09:11 AM by aakai1056.
This document, titled "Linux - How to access the system log using command line?," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (
Running Linux on small configurations
How to assign an IP address under Linux?