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

February 2017




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


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 (ccm.net).