Master Linux Like a Pro: Dive into the 2026 RHEL Red Hat Challenge!

Question: 1 / 400

What Linux command would you use to check the current users logged into the system?

whoami

logged_users

who

The command to check the current users logged into the system is "who." This command provides detailed information about users currently logged in, including their usernames, terminal details, and the time they logged in. It displays a list of all active user sessions on the machine, making it particularly useful for system administrators who need to monitor user activity.

In contrast, "whoami" displays only the username of the current user executing the command, which does not provide information about other users on the system. "logged_users" is not a standard command in Linux, and therefore, cannot be used effectively. The command "users" provides a simplified list of currently logged-in users but does not include additional session details like login time or terminal information. Therefore, "who" stands out as the most comprehensive and informative option for checking currently logged-in users.

Get further explanation with Examzify DeepDiveBeta

users

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy