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 you run command every time a file is modified?
Write a command that will look for files with an extension "c", and has the occurrence of the string "apple" in it.
Is llvm a virtual machine?
How can I type in cmd?
What does ls mean in linux?
You want to know how many lines in the kickoff file contains ‘prize’. Which of the following commands will produce the desired results?
In order to improve your system’s security you decide to implement shadow passwords. What command should you use?
What command should you use to check the number of files and disk space used and each user’s defined quotas?
What does uname do in linux?
How is grep so fast?
Is python faster than bash?
Which of the following tasks cannot be accomplished with the touch command?
How do I run whois command?
What is option in linux command?
How do I find the umask value in linux?