Possible Duplicate:
How to know what user belongs to what ip on debian
Is there a way to see a list of all current logged in user on a Debian server? Sometimes it is very useful to do so, e.g. before updating certain plugins etc.
Any software or built-in features? All users will log in through ssh.
use the
who
command. It will show you the username and the terminal/pseudo terminal that they are using, as well as what time they logged in:Mine shows three instances of me because I've got two terminal windows open, plus my log-in to the box.
You could also use the
last
command. This will show the most recently logged in people, as well as currently logged in users.The
who
command will do the job and show all users logged in.