What would you do when all the processess hangs and there is
no other option in unix?
Answer Posted / sushil
if all the commands are hanging then there is no point
running any command.
In this case system can be considred as it's hung. and hence
u might want to
collect some useful information to perform root cause
ananlysis before rebooting the
system.
Here we can apply magic keys and ask OS to dump memory/
registers and we can even
instruct it to terminat/kill all but init process ,
sometimes we can send
kill signal to all proccess including init.
Alt+SysRQ+m prints memory information to the console.
Alt+SysRQ+e sends SIGTERM to all processes except init.
Alt+SysRQ+i sends SIGKILL to all processes except init.
Alt+SysRQ+l sends SIGKILL to all processes, inclusive init.
Alt+SysRQ+s writes all data from the disc cache to the
harddiscs, its a sync
Alt+SysRQ+i (for the processes that didn't listen for the
TERM signal, this is a kill -9 process)
Alt+SysRQ+b (reboot).
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How do I run a .sh file in linux?
How does mkdir work in linux?
What could possibly be the problem when a command that was issued gave a different result from the last time it was used?
What is difference between comm and CMP command?
What is whois command?
What are grep commands?
What is command to check ports running/used over local machine
How to root mirror in linux?
What Command used to lock user password?
What is the use of mv command in linux?
Which of the commands will replace all occurrences of the word rate with the word speed in the file racing?
What is df command in linux?
What is phony in makefile?
Is llvm a compiler?
You suspect that you have two commands with the same name as the command is not producing the expected results. What command can you use to determine thelocation of the command being run?