XK0-005 · Question #423
A Linux systems administrator wants to see the current processes that are being run by each individual user who is logged on to the server. Which of the following is the BEST way to gather this…
The correct answer is E. w. To identify currently logged-in users and details about their active processes on a Linux server, the w command is the most effective tool.
Question
A Linux systems administrator wants to see the current processes that are being run by each individual user who is logged on to the server. Which of the following is the BEST way to gather this information?
Options
- Awall
- Bwho
- Cwhich
- Dwatch
- Ew
How the community answered
(28 responses)- B4% (1)
- C4% (1)
- E93% (26)
Why each option
To identify currently logged-in users and details about their active processes on a Linux server, the `w` command is the most effective tool.
The `wall` command sends a message to all logged-in users, rather than displaying information about their processes.
The `who` command lists logged-in users and their login times, but it does not show their running processes.
The `which` command locates the executable path of a given command and is unrelated to monitoring user processes.
The `watch` command executes a specified command repeatedly and displays its output, but it doesn't directly gather information about all user processes.
The `w` command provides a summary of each user currently logged on to the system, including their terminal, login time, idle time, and the command they are currently executing, which reveals their running processes.
Concept tested: Linux user and process monitoring
Source: https://man7.org/linux/man-pages/man1/w.1.html
Topics
Community Discussion
No community discussion yet for this question.