nerdexam
Exams220-1002Questions#455
CompTIA

220-1002 · Question #455

220-1002 Question #455: Real Exam Question with Answer & Explanation

The correct answer is D: Ps and kill. On Linux, the 'ps' command (process status) lists all currently running processes, allowing the administrator to identify whether any instance of the application is already running and find its Process ID (PID). The 'kill' command is then used to terminate that rogue process by i

Question

A Linux user report that an application will not open and gives the error only one instance of the application may run at one time. A root administrator logs on ot the device and opens terminal. Which of the following pairs of tools will be needed to ensure no other instance of the software are correctly running?

Options

  • APad and chmod
  • BNode and vi
  • CIs an chown
  • DPs and kill
  • EOp and rm

Explanation

On Linux, the 'ps' command (process status) lists all currently running processes, allowing the administrator to identify whether any instance of the application is already running and find its Process ID (PID). The 'kill' command is then used to terminate that rogue process by its PID (e.g., 'kill -9 <PID>'). This combination directly addresses the error 'only one instance may run at a time' by confirming and terminating any orphaned or stuck process. The other pairs - chmod (permissions), chown (ownership), vi (text editor), rm (remove files) - are unrelated to process inspection and termination.

Community Discussion

No community discussion yet for this question.

Full 220-1002 Practice