how to view a log file that is being written to in linux code example Example: linux show log file real time $ sudo tail -f /var/log/apache2/access.log