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

Which command is used to create a directory?

1172


Give the command for finding the current date.

1118


Differentiate cat command from more command.

1156


Who command in unix operating system?

1142


What does 'mkdir' command do in UNIX?

1314


What is unix command line?

1265


What are reported commands?

1133


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

1267


What is the difference between cat command and more command?

1211


What command is used to check the current users?

1136


What does awk stand for?

1085


What happens when we execute a unix command?

1147


How do you grep a case insensitive?

1052


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

1132


What does the “echo” command do?

1155