Forrest logo
back to the who tool

who:tldr:53d67

who: Display the username, line, and time of all currently logged-in sessions.
$ who
try on your machine

The command "who" is a Unix/Linux command used to display information about the users currently logged into the system. It provides details such as the username, terminal where the user is logged in, login time, and the remote host from where the user is accessing the system.

When you run the "who" command, it will list the current users along with their login information. The output typically includes the following columns:

  1. Username: The username of the logged-in user.
  2. Terminal: The terminal or virtual console where the user is logged in, often represented as "pts" followed by a number if it's a pseudo-terminal or "tty" followed by a letter if it's a physical terminal. For remote connections, the name of the remote host is displayed.
  3. Date & Time: The date and time when the user logged in.

The "who" command is useful for system administrators to monitor active user sessions and check for any unauthorized access. It can also help in identifying which users are currently using system resources or assisting in troubleshooting potential issues.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • who is logged on?
back to the who tool