home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man1 / who.1 < prev    next >
Encoding:
Text File  |  1975-06-26  |  1.1 KB  |  47 lines

  1. .th WHO I 3/15/72
  2. .sh NAME
  3. who  \*-  who is on the system
  4. .sh SYNOPSIS
  5. .bd who
  6. [ who-file ] [
  7. .bd "am I"
  8. ]
  9. .sh DESCRIPTION
  10. .it Who,
  11. without an argument,
  12. lists the name, typewriter channel, and login time
  13. for each current UNIX user.
  14. .s3
  15. Without an argument,
  16. .it who
  17. examines the /etc/utmp
  18. file to obtain its information.
  19. If a file is given, that file is examined.
  20. Typically the given file will be /usr/adm/wtmp,
  21. which contains a record of all the logins since it
  22. was created.
  23. Then
  24. .it who
  25. lists
  26. logins, logouts, and crashes since the creation of
  27. the wtmp file.
  28. Each login is listed with user name,
  29. typewriter name (with `/dev/'
  30. suppressed),
  31. and date and time.
  32. When an argument is given, logouts produce a similar line without a user name.
  33. Reboots produce a line with `x' in the place of the device name,
  34. and a fossil time indicative of when the system went down.
  35. .s3
  36. With two arguments,
  37. .it who
  38. behaves as if it had no arguments except for restricting
  39. the printout to the line for the current typewriter.
  40. Thus `who am I' (and also `who are you')
  41. tells you who you are logged in as.
  42. .sh FILES
  43. /etc/utmp
  44. .sh "SEE ALSO"
  45. login (I), init (VIII)
  46. .sh BUGS
  47.