Source: lifewire.com

Ubuntu/Linux log files can be quite long with many entries, but usually you only care about the end. So, how can you quickly view the last few entries in a log file? Use the tail command:

tail /var/log/httpd/error_log

To watch the latest output as it happens, use the -f flag

tail -f /var/log/httpd/error_log

When you are done viewing, use CTRL-c to break out of the “tail -f”