XK0-005 · Question #380
While inspecting a recently compromised Linux system, the administrator identified a number of processes that should not have been running: Which of the following commands should the administrator…
The correct answer is A. pkill -9 -f "upload*.sh". The pkill -9 -f "upload.sh" command will terminate all of the identified processes. This command will send a SIGKILL signal (-9) to all processes whose full command line matches the pattern "upload.sh" (-f). This signal will force the processes to terminate immediately without…
Question
While inspecting a recently compromised Linux system, the administrator identified a number of processes that should not have been running:
Which of the following commands should the administrator use to terminate all of the identified processes?
Exhibit
Options
- Apkill -9 -f "upload*.sh"
- Bkill -9 "upload*.sh"
- Ckillall -9 "upload*.sh"
- Dskill -9 "upload*.sh"
How the community answered
(41 responses)- A83% (34)
- B10% (4)
- C2% (1)
- D5% (2)
Explanation
The pkill -9 -f "upload*.sh" command will terminate all of the identified processes. This command will send a SIGKILL signal (-9) to all processes whose full command line matches the pattern "upload*.sh" (-f). This signal will force the processes to terminate immediately without giving them a chance to clean up or save their state. The kill -9 "upload*.sh" command is invalid, as kill requires a process ID (PID), not a pattern. The killall -9 "upload*.sh" command is incorrect, as killall requires an exact process name, not a The skill -9 "upload*.sh" command is incorrect, as skill requires a username or a session ID (SID),
Topics
Community Discussion
No community discussion yet for this question.
