Count how many times users have successfully logged into your Linux machine.

This command will display a count of successful logins to your Linux machine. jason-H55-USB3% grep ‘session opened’ /var/log/auth.log | wc -l 67jason-H55-USB3% grep ‘session opened’ /var/log/auth.log | wc -l 67 This will display a count of failed login attempts to your Linux machine. jason-H55-USB3% grep ‘FAILED LOGIN’ /var/log/auth.log | wc -l 3jason-H55-USB3% grep ‘FAILED LOGIN’ … Read more