Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam LFCS topic 1 question 44 discussion

Actual exam question from Linux Foundation's LFCS
Question #: 44
Topic #: 1
[All LFCS Questions]

Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?

  • A. kill -PIPE 123
  • B. kill -KILL 123
  • C. kill -STOP 123
  • D. kill -TERM 123
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Buruguduystunstugudunstuy
1 year, 3 months ago
Selected Answer: D
The command that kills the process with the PID '123' but allows the process to "clean up" before exiting is 'kill -TERM 123'. Option D is the correct answer. The 'kill' command is used to send a signal to a process, causing it to terminate. The '-TERM' option specifies the 'SIGTERM' signal, which is a request to terminate the process. This signal allows the process to clean up before exiting. The other options do not accurately describe the behavior of the 'kill' command: Option A: The '-PIPE' option is not a valid option for the 'kill' command. Option B: The '-KILL' option specifies the 'SIGKILL' signal, which is a request to terminate the process immediately. This signal does not allow the process to clean up before exiting. Option C: The '-STOP' option specifies the 'SIGSTOP' signal, which is a request to stop the process. This signal does not terminate the process, and it does not allow the process to clean up before exiting.
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 ...