Which command provides verbose output of users currently logged into the system?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command that provides verbose output of users currently logged into the system is "w." This command not only lists the logged-in users but also gives additional details such as their activity, how long they've been idle, and the commands they are currently running. The output includes the user's name, the terminal from which they are logged in, their login time, and the host from which they are connecting, making it a comprehensive option for monitoring user activity.

In contrast, "who" provides a simpler list of users currently logged in, without additional details like their idle time or current activities. The "id" command is used to display user and group information for a specified user, but it does not provide information about other users logged into the system. The "usermod" command is utilized for modifying user accounts and does not display information regarding logged-in users at all. Thus, "w" is the most informative choice for this purpose.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy