You know how to view files in Linux. You use cat command or probably less command for this purpose.

Thataposs good for files that has static content. But log files are dynamic and their content change with time. To monitor logs you need to watch the log file as its content changes.

How do you see the content of log files in real time Tail is the most popular command for this purpose but there are some other tools as well. Iaposll show them to you in this tutorial.

The tail command is so popular for viewing log files in real life that sysadmins use the term apostail the log fileapos.

The tail command is essentially used for showing the lines of a file from the end and hence the term apostailapos.

You can use the -f option to follow the tail of a file which means that it will keep on showing the new lines added to the file continuously.

...

Read Full Post

News Link: https://linuxhandbook.com/watch-logs-real-time/.

Linux Chatter is a news aggregator service that curates some of the best Linux, Cloud, Technical Guides, Hardware and Security news. We display just enough content from the original post to spark your interest. If you like the topic, then click on the 'read full post' button to visit the author's website. Use Linux Chatter to find content from amazing authors!

Note: The content provided has been modified and is not displayed as intended by the author. Any trademarks, copyrights and rights remain with the source.

Disclaimer: Linux Chatter sources content from RSS feeds and personal content submissions. The views and opinions expressed in these articles are those of the authors and do not necessarily reflect those of Linux Chatter.