Examples of using the who command

1. To find out who is logged on to the system:

   who
   erco02   ttyPt   Nov  3 08:01  (braid.ucs:0.0)
   hwb      ttyPu   Oct 26 11:23   (dirac.maths.ed.a)
   helper   ttyPv   Nov  5 09:07   (artws.ucs.ed.ac.)
   djs      ttyPx   Nov  5 11:39   (129.215.72.75)
   aipex    ttyPB   Nov  5 11:41   (owl.dai.ed.ac.uk)
   billy    ttyPF   Nov  5 09:12   (diamond.epcc.ed.)

This displays the name of the user, the date and time that they logged on and the name of their terminal.

Notice that a user might have been logged on for several days or even weeks.

2. To find out who is logged on and prevent the information from rolling off the screen:

   who | more

This sends the output from the who command through another program known as a pager which presents the information a page at a time.


Top document