Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

is there a way to get an overview of users logged in on my server and the ip they are connecting from ?

I have the IP already, I want the user that is associated with it :)

share|improve this question
up vote 32 down vote accepted


share|improve this answer
wow, as simple as one letter – Lucas Kauffman Aug 17 '11 at 12:57
+1 for the smallest, valid answer ever. – SmallClanger Aug 17 '11 at 12:57
@SmallClanger - smallest ever, and smallest possible :) – Nixphoe Aug 17 '11 at 13:16
I think @jscott used a sly comment to pad his answer out. – SmallClanger Aug 17 '11 at 13:24
I would like to flag this answer as 'awesome' – mfinni Aug 22 '11 at 20:55

Use the who command. It lists everyone logged in, their terminal and their source hostname/ip address.

share|improve this answer

in addition to w and who, last - recent logins with ips lastlog - list of all users with the last ip they were logged in from

share|improve this answer

In addition to w1 and who2, you may also look at finger3.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.