nerdexam
CompTIA

XK0-005 · Question #10330

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…

Security

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?

Options

  • Apkill -9 -f "upload*.sh"
  • Bkill -9 "upload*.sh"
  • Ckillall -9 "upload*.sh"
  • Dskill -9 "upload*.sh"

How the community answered

(51 responses)
  • A
    84% (43)
  • B
    10% (5)
  • C
    4% (2)
  • D
    2% (1)

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

#Process Management#Linux Commands#Command Line#Security Operations

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice