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
What does this command do? Cat food 1 > kitty
How do I search a whole word in vim?
What does grep v do?
What's a command word?
What are the dos commands?
What does the “echo” command do?
How many unix commands are there?
Can you enlist some commonly used network commands?
How do I use grep to search for a file?
What are awk commands?
What are the commands in UNIX to list the files in a Directory?
How do I clear my terminal history?
What are some command words?
Which command is used to restrict incoming messages?
What is the difference between cat and more command?