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 the md command do?
What is the use of finger command?
What is s and g in sed command?
Which command can you use to find the currently running process in unix server?
What is the difference between awk and grep?
Is command prompt unix?
Explain the steps that a shell follows while processing a command.
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
How do I open a port?
What is ‘ps’ command for?
What is the comma to show the space allocation of files?
Explain command to display different lines that are found when compare two files?
What do know about tee command?
What are reported commands?
What are awk commands?