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 the use of egrep command in unix?

1131


What is the command to compare two files in unix?

1057


What is the use of the tee command?

1055


How to use grep command to list find the records of a file containing 10 different strings?

1090


Which unix command lists files/folders in alphabetical order?

1666


Explain the steps that a shell follows while processing a command.

1166


Using unix command how to display no of records in oracle?

1115


Enlist some filename manipulation commands in unix.

1089


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

1969


What is the difference between grep and grep?

1065


What is grep in bash?

1012


Explain command to show the space allocation of files?

1070


Is command prompt unix?

1101


What does the “echo” command do?

1101


What is ‘ps’ command for?

1138