How to tail an ubuntu log file


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.

Add me on LinkedIn

I'm a Web Developer with TypeScript, React.js, Node.js and AWS experience.

Let's connect on LinkedIn

Join my newsletter

I'll send you 1 email a week with links to all of the articles I've written that week

Buy Me A Coffee