file] who am i
Show who is logged into the system. With no options, list the names of users currently logged in, their terminal, the time they have been logged in, and the name of the host from which they have logged in. An optional system file (default is /etc/utmp) can be supplied to give additional information.
Equivalent to -b -d --login -p -r -t -T -u.
Print information for the invoking user.
Print time of last system boot.
Print a list of dead processes.
Print column headings.
Print a help message and then exit.
Print list of system login processes.
Attempt to include canonical hostnames via DNS.
Same as who am i.
Print active processes spawned by init.
“Quick.” Display all usernames and the total number of users.
Print the current runlevel.
Print only name, line, and time. This is the default behavior.
Print the last system clock change.
Print a list of the users who are logged in.
Print version information and then exit.
Include user’s message status in the output:
mesg y (write messages allowed)
mesg n (write messages refused)
Cannot find terminal device
This sample output was produced at 8 a.m. on April 17:
who -uHNAME LINE TIME IDLE PID COMMENTS Earvin ttyp3 Apr 16 08:14 16:25 2240 Larry ttyp0 Apr 17 07:33 . 15182
Since Earvin has been idle since yesterday ...