Get the A+ 4 Real e-book for your own computer.
Click Here!

Custom Search







Table Of Contents  CertiGuide to A+ (A+ 4 Real)
 9  Chapter 5: The Linux Operating System
      9  Command Line Functions And Administrative Utilities
           9  User Management Commands

Previous Topic/Section
User Management Commands
Previous Page
Pages in Current Topic/Section
1
Next Page
su - Run a Shell with Substitute User and Group IDs
Next Topic/Section

w and who - Who is Logged in and What They are Doing

who is a basic command that shows who is logged in on the system and when they logged in. A typical output from this command is as follows:

phil tty1 Jul 27 22:29

phil pts/0 Jul 27 22:29

usera pts/1 Jul 30 10:21

userb pts/2 Jul 30 23:45

userc pts/3 Jul 30 10:38

An alternative, the w command provides a little more information:

9:49pm up 14 days, 1:05, 5 users, load average: 0.08, 0.06, 0.07

USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT

phil tty1 - 27Jul03 6days 0.34s 0.01s /bin/sh /usr/X1

phil pts/0 - 27Jul03 6days 0.00s ? -

usera pts/1 - Wed10am 1:29m 0.19s 0.19s /bin/bash

userb pts/2 - Wed11pm 1:18m 0.57s 0.57s /bin/bash

userc pts/3 - Wed10am 0.00s 1.30s 0.03s w

This not only shows who is logged on to the system and from where they logged in but also some system information, system load, what each user is doing and when they logged in. This will help the system administrator understand what is system is doing and what resources the various users are using.


Previous Topic/Section
User Management Commands
Previous Page
Pages in Current Topic/Section
1
Next Page
su - Run a Shell with Substitute User and Group IDs
Next Topic/Section

If you find CertiGuide.com useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider buying an inexpensive PDF equivalent of the CertiGuide to A+ (A+ 4 Real) from StudyExam4Less.com. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

CertiGuide to A+ (A+ 4 Real) (http://www.CertiGuide.com/apfr/) on CertiGuide.com
Version 1.0 - Version Date: March 29, 2005

Adapted with permission from a work created by Tcat Houser et al.
CertiGuide.com Version Copyright 2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.