How to check in real time Linux logs with the tail command?

Simple how to tutorials for linux.
Post Reply
User avatar
sonik
Site Admin
Posts: 37
Joined: 12 Nov 2018, 22:12

How to check in real time Linux logs with the tail command?

Post by sonik » 30 May 2019, 11:19

How to check in real time Linux logs with the tail command?

Code: Select all

tail -f /var/log/apache2/error.log
If we want n number of rows:

Code: Select all

tail -n10 -f /var/log/apache2/error.log

Post Reply