Command-Line – How to Monitor Logged In Users

command lineusers

To expand on this question: users command lists 5 of the same users…Is this normal?

How can I track down what each user is doing or what service/app/request spawned another login of that user?

EDIT: https://askubuntu.com/a/115028/38901 answer from the previous post offers the solution of using who which is useful to see where the user is. Still, any way to see what?

Best Answer

You can use who command to see where your users have logged in eg. tty, pseudo terminals, etc.

you can also use

ps -ef

from your terminal to see what all users are doing

Related Question