How to kill a Unix or Linux process

No GoodNeed ImprovementOKGoodExcellent (1 votes, average: 5 out of 5)
Loading ... Loading ...

Use the following command to kill a unix process:

kill -9 `ps -ef | grep <process-name> | grep -v grep | awk ‘{print $2}’`

For example,

kill -9 `ps -ef | grep GrantDownloadByID | grep -v grep | awk ‘{print $2}’`

Popularity: 2%

Leave a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word