Answer Posted / c sivakumar
If we want to kill a process first we have to know the
process id. We cam come to know ps or top command.
Then we have to identify the respective proce's child
process with the help of ptree command. Then we can give
kill id-1 id-2
example:- Take an example while using ps command
# ps
PID TT S TIME COMMAND
2243 pts/16 S 0:00 -csh
now we identified the PID no (2243) with the help of above
said ps command.
Then we have to give following command to know child
process_-
ptree 2243
1498 /usr/local/sbin/sshd
2062 /usr/local/sbin/sshd
2199 /usr/local/sbin/sshd
2205 -csh
2243 -csh
11535 ptree 2243
Now we can kill above said all ids.
kill 1498 2062 2199 2205 2243 11535
Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.
What is sed awk grep?
What is grep short for?
What does awk stand for?
What is the difference between cat command and more command?
What does the md command do?
Which command is used to restrict incoming messages?
What is pipe command in unix?
What do chown command do?
What does grep v grep do?
What are the commands in UNIX to list the files in a Directory?
Why is shebang used?
Why is it called grep?
Which command should you use to find the remaining disk space in unix server?
What does the metacharacter mean?