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

Session length

1 / 20

What command displays the current users logged into the system?

whoami

who or w

The command that effectively displays the current users logged into the system is "who" or "w." These commands provide information about all users who are currently logged in, along with their login times and other session details.

The "who" command presents a concise list showing usernames, terminal names, login times, and occasionally the originating IP addresses from which users have connected. It can help in monitoring who is active on the system at any given moment.

On the other hand, the "w" command goes a step further by not only listing the logged-in users but also showing what each user is currently doing in their session, including process information and idle time. This additional context can be valuable for system administration and user activity monitoring.

The other choices, while related to user information, do not provide the same level of detail. "whoami" only displays the username of the current user executing that command. "users" simply prints a space-separated list of usernames who are currently logged in, but lacks additional information. "listusers" is not a standard command on RHEL systems and would result in an error, further underscoring why this option is not suitable.

Thus, "who" or "w" is the correct answer because they

Get further explanation with Examzify DeepDiveBeta

users

listusers

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy