Sort and rank of who is using sudo on the box

Quick one liner to remember when you work on your Linux box. It could be useful command to know. Here it is, this the one liner that will tell you who is using sudo command and it will all sort out and rank in your output for better reading 🙂

egrep -o “sudo:\s+\S+\s+:” /var/log/secure | sort | uniq -c | sort -g

Have fun!