220-1002 · Question #455
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…
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…
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
How the community answered
(40 responses)- A5% (2)
- B3% (1)
- D85% (34)
- E8% (3)
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.
Topics
Community Discussion
No community discussion yet for this question.