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

December 2016




Issue


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

Solution

  • 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).

Related :

This document entitled « Linux - How to access the system log using command line? » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.