nerdexam
CompTIA

220-1002 · Question #254

A Linux user reports that an application will not open and gives the error. Only one instance of the A root administrator logs on to the device and opens a application may run at one time. terminal…

The correct answer is D. ps and kill. The error indicates the application believes an instance is already running. On Linux, the correct approach is to first identify running processes and then terminate the rogue one. The 'ps' command (process status) lists currently running processes, allowing the admin to find…

Hardware

Question

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

Options

  • Apad and chmod
  • Bsudo and vi
  • Cls and chown
  • Dps and kill
  • Ecp and rm

How the community answered

(35 responses)
  • A
    3% (1)
  • C
    3% (1)
  • D
    94% (33)

Explanation

The error indicates the application believes an instance is already running. On Linux, the correct approach is to first identify running processes and then terminate the rogue one. The 'ps' command (process status) lists currently running processes, allowing the admin to find any existing instance of the application. The 'kill' command then terminates that process by its PID. Together, ps and kill directly solve the problem. The other pairs are unrelated: pad/chmod deal with permissions, sudo/vi is an editor with privilege escalation, ls/chown lists directory contents and changes ownership, and cp/rm copies and removes files.

Topics

#Linux commands#process management#ps command#kill command

Community Discussion

No community discussion yet for this question.

Full 220-1002 Practice