*nix command to
display information about the
current status of the
system. With no
options, list the
names of
users currently
logged in to the
system. An
optional system file (which defaults to
/var/adm/utmp) can be supplied to give
additional information.
whois usually
invoked without options, but useful options include am I and -u.
Options:
-a
Use all options.
-b
Report information about the last
reboot.
-d
Report
expired processes.
-H
Print
headings.
-l
Report inactive
terminal lines.
-nx
Display x users per line (works only with -q).
-p
Report previously
spawned processes.
-q
"Quick." Display only the
usernames.
-r
Report the
run level.
-s
List the name, line, and time fields (the default behavior).
-t
Report the last change of the
system clock (via
date).
-T
Report whether
terminals are
writable (+), not writable (-), or unknown (?).
-u
Report terminal usage (
idle time). A dot (.) means less than one minute idle; old means more than 24 hours idle.
am i
Print the username of the invoking user.