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
Which command is used to create a directory?
Give the command for finding the current date.
Differentiate cat command from more command.
Who command in unix operating system?
What does 'mkdir' command do in UNIX?
What is unix command line?
What are reported commands?
Which command is used to delete all files in the current directory and all its sub-directories?
What is the difference between cat command and more command?
What command is used to check the current users?
What does awk stand for?
What happens when we execute a unix command?
How do you grep a case insensitive?
How to use grep command to list find the records of a file containing 10 different strings?
What does the “echo” command do?