access.log in ubuntu code example
Example 1: view log apache 2
sudo tail /var/log/apache2/error.log
Example 2: ubuntu server login logs
sudo less /var/log/auth.log
or
last
sudo tail /var/log/apache2/error.log
sudo less /var/log/auth.log
or
last