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 is the use of egrep command in unix?
What is the command to compare two files in unix?
What is the use of the tee command?
How to use grep command to list find the records of a file containing 10 different strings?
Which unix command lists files/folders in alphabetical order?
Explain the steps that a shell follows while processing a command.
Using unix command how to display no of records in oracle?
Enlist some filename manipulation commands in unix.
Describe the usage and functionality of the command rm –r * in unix?
What is the difference between grep and grep?
What is grep in bash?
Explain command to show the space allocation of files?
Is command prompt unix?
What does the “echo” command do?
What is ‘ps’ command for?