What command would you use to see a list of all users currently logged into the system?

Study for the Linux Fundamentals Test. Enhance your skills with flashcards and multiple-choice questions. Each question has hints and explanations. Get ready for your exam!

To see a list of all users currently logged into the system, the appropriate command is either "who" or "w."

The "who" command displays information about all logged-in users, including their usernames, terminal lines, login times, and the originating IP address or hostname. This provides a clear view of who is currently using the system at that moment.

The "w" command offers additional details by not only listing users but also showing what each user is doing at the time, including their current processes and how long they have been logged in. This command can be particularly useful for system administrators who need to monitor user activity.

Using the other commands would not yield the same level of detailed information about currently logged-in users. For instance, the "user" command does not exist as described in the context of checking logged-in users, and the "logged" command does not typically come standard in Linux environments. The "users" command would display a list of logged-in users as usernames only, without additional details like when they logged in or what they are doing, making "who" and "w" more informative options.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy