An administrator needs to kill the oldest Bash shell running in the system. Which of the following commands should be issued to accomplish this task?

QuestionsCategory: XK0-004An administrator needs to kill the oldest Bash shell running in the system. Which of the following commands should be issued to accomplish this task?
Admin Staff asked 6 months ago
An administrator needs to kill the oldest Bash shell running in the system. Which of the following commands should be issued to accomplish this task?

A. ps axjf | grep bash to obtain PID kill -9 PID

B. ps ג€"eo pid,etime,cmd | grep bash (to obtain PID) kill -9 PID

C. ps ג€"eo pid,etime| grep bash (to obtain PID) killall -9 PID

D. killall -15 -o bash








 

Suggested Answer: D

Community Answer: B

Reference:
https://phoenixnap.com/kb/how-to-kill-a-process-in-linux

This question is in XK0-004 CompTIA Linux+ Exam
For getting CompTIA Linux+ Certificate


Disclaimers:
The website is not related to, affiliated with, endorsed or authorized by CompTIA. 
Trademarks, certification & product names are used for reference only and belong to CompTIA.
The website does not contain actual questions and answers from CompTIA's Certification Exams.

Next Post

Recommended

Welcome Back!

Login to your account below

Create New Account!

Fill the forms below to register

Retrieve your password

Please enter your username or email address to reset your password.