Watch Linux Logs in Real Time

Example of a command to view the log file in real time:

tail -f /var/log/syslog

The output of the data can be highlighted in different colors, for this you can set ccze:

sudo apt-get install ccze

And for example, to formulate a command as follows:

tail -f /var/log/syslog | ccze --mode ansi

To stop viewing, you can use the keyboard shortcut Ctrl + C.

Leave a comment

Leave a Reply