who

>Usage

The who command is used to display a list of users currently logged into the system, including their login names, login times, and terminal details. It provides real-time information about active users, making it an important tool for system administrators to monitor who is logged in and when. The who command also shows the user's terminal and the IP address from which they logged in, if applicable.

>Synopsis

who [option] [file]

>Options

-H

Includes headers in the output to label the information (username, terminal, etc.).

Example:

Dots

who -H

who -H


NAME    LINE    TIME
user1   tty1    2024-11-16 09:00
user2   pts/0   2024-11-16 10:00 (192.168.1.100)

-q

Displays only the usernames of logged-in users and the total count.

-u

Shows the login time for each user.

>Quiz

Progress: Question ? out of ?

Question Title

Page written by Alessia Sanchez