QuestionQ84

VerifiedAutomation, Orchestration, and Scripting

A systems administrator needs to terminate every process owned by testuser on a Linux VM. Which of the following should the administrator use for this task?

Explanation

ps -ef lists processes with their owner and PID; filtering for testuser and extracting field 2 yields PIDs that kill -9 can terminate. The loop therefore targets the listed processes, unlike the alternatives, which do not correctly obtain process IDs.

Community Discussion

No comments yet. Be the first to start the discussion!