Which command shows what currently logged-in users are doing?

Study for the OSCP Linux Exam. Use our flashcards and multiple-choice questions to test your skills. Each query comes with detailed hints and explanations to enhance your preparedness. Get ready to conquer the exam!

Multiple Choice

Which command shows what currently logged-in users are doing?

Explanation:
Seeing what currently logged-in users are doing is about showing active sessions and the processes tied to them. The command that provides this view is w, because it prints a line per user that includes who they are, which terminal they’re on, when they logged in, how long they’ve been idle, and the command they’re currently running. This gives a real-time snapshot of user activity. In contrast, who lists only who is logged in and where/when, without the current activity; users outputs just usernames; and finger shows account details but doesn’t emphasize the exact command being executed. So, w is the best tool for seeing what each logged-in user is doing.

Seeing what currently logged-in users are doing is about showing active sessions and the processes tied to them. The command that provides this view is w, because it prints a line per user that includes who they are, which terminal they’re on, when they logged in, how long they’ve been idle, and the command they’re currently running. This gives a real-time snapshot of user activity. In contrast, who lists only who is logged in and where/when, without the current activity; users outputs just usernames; and finger shows account details but doesn’t emphasize the exact command being executed. So, w is the best tool for seeing what each logged-in user is doing.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy