We have a handful of users that login to our Linux virtual machine as root either through the vSphere client or through SSH and I want to see if there is a way to tell if multiple root users are logged in at the same time.
You can use who command to find out all the logged in users. There is w command also available to find out the same.
last | head x
last | head -n 100 | grep root | grep "still logged in"
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
By posting your answer, you agree to the
terms of service.
3 months ago