Displaying a log file live

This is useful when you wish to see an error on your server, for example when you are having trouble loading a page.

sudo tail -f /var/log/apache2/{error,access}.log

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *