Announcement

Collapse
No announcement yet.

W Command - How to check online users at command prompt in Linux?

Collapse

Ads on showthread pages

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • W Command - How to check online users at command prompt in Linux?

    WordPress Hosting on SSD Servers
    Hello

    In order to check the online users in command prompt for a Linux server one need to execute W command.

    Syntax:

    W [user]

    W command displays information about the users currently on the machine and their processes. It will also displays the current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.

    The following entries are displayed for each user: login name, the tty name, the remote host, login time, idle time, JCPU, PCPU, and the command line of their current process.

    The JCPU time is the time used by all processes attached to the tty. It does not include past background jobs but includes currently running background jobs. The PCPU time is the time used by the current process.

    Thanks,

    Shane G
    Accuwebhosting.com
    Last edited by admin; 07-30-2015, 09:12 AM.
Working...
X
Sign up for a News Letter Click here to sign up