nerdexam
CompTIA

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.

System Management

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)
  • B
    4% (1)
  • C
    4% (1)
  • E
    93% (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.

Awall

The `wall` command sends a message to all logged-in users, rather than displaying information about their processes.

Bwho

The `who` command lists logged-in users and their login times, but it does not show their running processes.

Cwhich

The `which` command locates the executable path of a given command and is unrelated to monitoring user processes.

Dwatch

The `watch` command executes a specified command repeatedly and displays its output, but it doesn't directly gather information about all user processes.

EwCorrect

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

#Process Monitoring#User Monitoring#Linux Commands#System Utilities

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice