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 are awk commands?

1153


What do chmod command do?

1213


Explain command to show the space allocation of files?

1118


Describe the usage and functionality of the command rm –r * in unix?

2090


What is in grep command?

1160


What is the functionality of a top command?

1101


What command is used to switching between users in unix?

1076


What are the dos commands?

1255


Which command is used to delete all files in the current directory and all its sub-directories?

1252


What does grep v grep do?

1073


What does pipe () return?

1069


Which command is used to find whether the system is 32 bit or 64 bit?

1141


Describe the zip/unzip command using gzip.

1155


What is .sh file?

1171


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

1152