Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

In UNIX, what is the command to kill a process?

Answer Posted / srinivas kalvacherla

How to terminate process by name in UNIX
kill -9 `ps -ef | grep process_name | grep -v grep |
awk '{print $2}'`

Note that the grep process_name should be the command that
you ran. Also note that the commands after 'kill -9' are
enclosed in backtiks.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is {} in find command?

1065


What is command statement?

1112


What does find command return in unix?

1108


Describe the zip/unzip command using gzip.

1112


What is the comma to display different lines that are found when compare two files?

1099


Are you in or at the office?

1084


What is nr in awk command?

1144


What is awk good for?

1099


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

1348


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

1167


What does the “echo” command do?

1105


How does pipe () work?

1046


What does sed command do in unix?

1131


What is difference between grep and find command in unix?

1153


Which command is used to kill the last background job?

1299