exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 184 discussion

Actual exam question from CompTIA's XK0-005
Question #: 184
Topic #: 1
[All XK0-005 Questions]

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"
  • B. kill -9 "upload*.sh"
  • C. killall -9 "upload*.sh"
  • D. skill -9 "upload*.sh"
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Damon54
11 months, 2 weeks ago
Selected Answer: A
pkill An alternative command to kill is the pkill command, which also references the process by PID. Additionally, pkill can also terminate processes based on name, users, and other criteria. When -f is set, the full command line is used. (complete command line) The kill command is used to pass these signals to processes. For example, to initiate a graceful exit, type: $ sudo kill -15 {PID} Likewise, kill -9 {PID} sends a SIGKILL message to the process. skill These tools are obsolete and unportable.
upvoted 3 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 ...