7

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 :)

4 Answers 4

34

w

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

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

2

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

2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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