Find the answer to your Linux question:
Results 1 to 3 of 3
Hi! I have been searching for a Linux command similar to "who": I need to ask my server to return a list of all users currently connected to a specified ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    2

    Server Administration for Beginners

    Hi!

    I have been searching for a Linux command similar to "who":
    I need to ask my server to return a list of all users currently connected to a specified UNIX server (not necessarily the one I'm working on, as with the who command).

    Can you help with suggstions?
    Thanks a lot.

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Try using "w".

  3. #3
    drl
    drl is offline
    Linux Engineer drl's Avatar
    Join Date
    Apr 2006
    Location
    Saint Paul, MN, USA / CentOS, Debian, Solaris, SuSE
    Posts
    1,117
    Hi.

    Users who are connected are logged in, so running:
    Code:
    man -k logged
    to look for the keyword logged in the man page descriptions produces:
    Code:
    % man -k logged
    last (1)             - show listing of last logged in users
    lastb (1)            - show listing of last logged in users
    users (1)            - print the user names of users currently logged in to the current host
    w (1)                - Show who is logged on and what they are doing.
    w.procps (1)         - Show who is logged on and what they are doing.
    who (1)
    Your system may not have all of these, and not all of the hits will be on target, but learning how to use man -- read man man -- will save you time and trouble. It is one of the most important commands to learn to make one self-sufficient.

    With more work, running a Google search with:
    man connected linux
    would (eventually) lead you to: Linux Newbie Administrator Guide - 6.4 System info and
    Linux Newbie Administrator Guide - 6.3 Help commands the main index of which may be very useful ... cheers, drl
    Welcome - get the most out of the forum by reading forum basics and guidelines: click here.
    90% of questions can be answered by using man pages, Quick Search, Advanced Search, Google search, Wikipedia.
    We look forward to helping you with the challenge of the other 10%.
    ( Mn, 2.6.n, AMD-64 3000+, ASUS A8V Deluxe, 1 GB, SATA + IDE, Matrox G400 AGP )

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...