How to tail an ubuntu log file

avatar

Borislav Hadzhiev

Sat Nov 28 20201 min read

Most of your log files on linux are in the var/log directory.

It's always useful to be able to check the stream of information in a log file, so you don't have to constantly close and open the file to update it.

On Ubuntu you can do this in the following way:

sudo tail -f /var/log/auth.log

Note that the -f stands for follow.

Ubuntu is also nicely configured to automatically compress your log files and store them for you.

Use the search field on my Home Page to filter through my more than 1,000 articles.