exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 166 discussion

Actual exam question from CompTIA's XK0-005
Question #: 166
Topic #: 1
[All XK0-005 Questions]

A systems administrator has been unable to terminate a process. Which of the following should the administrator use to forcibly stop the process?

  • A. kill -1
  • B. kill -3
  • C. kill -15
  • D. kill -HUP
  • E. kill -TERM
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
TheRealManish
Highly Voted 2 years, 5 months ago
It seems to me that the correct answer is not here. Kill -9 is the right answer, all of the other answers are wrong. Kill -1 restart process kill -3 send a control c that can be ignored kill - 15 = request a graceful shutdown that can be ignored kill -HUP same as kill -1 kill -TERM same as kill -15
upvoted 13 times
...
diabolee
Most Recent 5 months ago
Selected Answer: B
Going with B since kill -15 gracefully shuts down the process.
upvoted 1 times
...
Blatzzy
1 year, 4 months ago
To forcibly stop a process, the administrator should use the -9 signal, also known as SIGKILL. Therefore, the correct option is not listed among the provided choices. If you have the option to provide a custom signal, you can use kill -9 followed by the process ID. In this case, if you must choose from the given options: B. kill -3 sends a SIGQUIT signal, which can also terminate a process, but it allows the process to perform a core dump before exiting. It's a bit less forceful than SIGKILL. So, the closest option among the given choices is B. kill -3. However, if the goal is to forcefully terminate the process, using kill -9 would be more appropriate.
upvoted 3 times
...
salthehash
1 year, 5 months ago
Selected Answer: C
The -15 signal (SIGTERM) is used to request a process to terminate. It allows the process to perform cleanup operations before exiting. If a process doesn't respond to SIGTERM, more aggressive signals like -9 (SIGKILL) can be used, but it does not allow the process to perform any cleanup. The administrator might resort to using -9 only if a process is unresponsive to the regular termination signals.
upvoted 1 times
...
linux_admin
2 years, 2 months ago
A. kill -1 (or kill -SIGHUP) - Sends a SIGHUP signal to the specified process, which typically requests the process to reload its configuration files. This may not terminate the process, so it may not be the best choice for forcibly stopping a process. B. kill -3 (or kill -SIGQUIT) - Sends a SIGQUIT signal to the specified process, which requests the process to terminate and create a core dump. This may not terminate the process, so it may not be the best choice for forcibly stopping a process. C. kill -15 (or kill -SIGTERM) - Sends a SIGTERM signal to the specified process, which requests the process to terminate gracefully. This is the default signal and is the recommended way to stop a process, as it allows the process to clean up its resources before exiting. However, some processes may not respond to the SIGTERM signal, in which case a more forceful approach may be necessary.
upvoted 2 times
linux_admin
2 years, 2 months ago
D. kill -HUP - This is the same as kill -1, which may not be the best choice for forcibly stopping a process. E. kill -TERM - This is the same as kill -15, which may not be the best choice for forcibly stopping a process. If the process needs to be forcibly stopped, the best option would be to use kill -9 (or kill -SIGKILL), which sends a SIGKILL signal to the specified process. This signal immediately terminates the process without giving it a chance to clean up its resources. However, this should only be used as a last resort, after other options (such as SIGTERM) have been tried and failed.
upvoted 1 times
...
...
MaryamNesa
2 years, 5 months ago
C is correct
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