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 are awk commands?
What do chmod command do?
Explain command to show the space allocation of files?
Describe the usage and functionality of the command rm –r * in unix?
What is in grep command?
What is the functionality of a top command?
What command is used to switching between users in unix?
What are the dos commands?
Which command is used to delete all files in the current directory and all its sub-directories?
What does grep v grep do?
What does pipe () return?
Which command is used to find whether the system is 32 bit or 64 bit?
Describe the zip/unzip command using gzip.
What is .sh file?
What is the comma to display different lines that are found when compare two files?