exam questions

Exam 1z0-821 All Questions

View all questions & answers for the 1z0-821 exam

Exam 1z0-821 topic 1 question 103 discussion

Actual exam question from Oracle's 1z0-821
Question #: 103
Topic #: 1
[All 1z0-821 Questions]

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?

  • A. You need to run the pkill command with the process name.
  • B. You need to switch to super user to kill the process.
  • C. You need to run the ps command to get more information.
  • D. You need to run the prstat command to get more information.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
You can use the pgrep and pkill commands to identify and stop command processes that you no longer want to run. These commands are useful when you mistakenly start a process that takes a long time to run.
To terminate a process:
Type pgrep to find out the PID(s) for the process(es).
Type pkill followed by the PID(s).
You can kill any process that you own. Superuser can kill any process in the system except for those processes with process IDs of 0, 1, 2, 3, and 4. Killing these processes most likely will crash the system.

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
tuguu4
2 months, 2 weeks ago
The correct one is A. The pkill is based on process name.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago