nerdexam
Oracle

1Z0-821 · Question #45

A user on the system has started a process, but it needs to be terminated. The process ID was determined as follows: pgrep userprogram l5317 The user attempted to terminate the program as follows…

The correct answer is A. You need to run the pkill command with the process name. To terminate proccess with pkill use it with pattern (regex) - not PID.

Managing System Processes and Scheduling Tasks

Question

A user on the system has started a process, but it needs to be terminated. The process ID was determined as follows:

pgrep userprogram l5317 The user attempted to terminate the program as follows:

pkill 15317 This command runs without an error message, and the process continues to run. What is the issue?

Options

  • AYou need to run the pkill command with the process name.
  • BYou need to switch to super user to kill the process.
  • CYou need to run the ps command to get more information.
  • DYou need to run the prstat command to get more information.

How the community answered

(32 responses)
  • A
    84% (27)
  • B
    6% (2)
  • C
    3% (1)
  • D
    6% (2)

Explanation

To terminate proccess with pkill use it with pattern (regex) - not PID.

Topics

#pkill#process management#kill signals#process termination

Community Discussion

No community discussion yet for this question.

Full 1Z0-821 Practice