ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 157 - XK0-005 discussion

Report
Export

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?

A.
pkill -9 -f "upload*.sh"
Answers
A.
pkill -9 -f "upload*.sh"
B.
kill -9 "upload*.sh"
Answers
B.
kill -9 "upload*.sh"
C.
killall -9 -upload*.sh"
Answers
C.
killall -9 -upload*.sh"
D.
skill -9 "upload*.sh"
Answers
D.
skill -9 "upload*.sh"
Suggested answer: A

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 pattern. The skill -9 "upload*.sh" command is incorrect, as skill requires a username or a session ID (SID), not a pattern. Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 15: Managing Memory and Process Execution, page 470.

asked 02/10/2024
Ramakrishnan Subramanian
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first