linux view log file in real time code example Example: linux show log file real time $ sudo tail -f /var/log/apache2/access.log