Quick one liner to remember when you work on your [easyazon_link identifier=”1118999878″ locale=”US” tag=”wn0d5-20″] Linux [/easyazon_link] 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!
[easyazon_image align=”none” height=”110″ identifier=”111898384X” locale=”US” src=”http://blog.technotesdesk.com/wp-content/uploads/2017/07/51y2BYGNnKsL.SL110.jpg” tag=”wn0d5-20″ width=”88″]