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
...
Log in to ExamTopics
Sign in:
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.
Buruguduystunstugudunstuy
6 months, 1 week ago