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


Please Help Members By Posting Answers For Below Questions

How do I change directories in linux command line?

477


What command used for showing user info like Login Name, Canonical Name, Home Directory,Shell etc in Linux?

610


How can I check the exit status of my previous command in Linux operating system?

548


What is simple command?

530


What does umask 077 mean?

547






Which daemon is used for scheduling of the commands?

570


What is mkdir p?

562


What is build process?

568


How do I test my cpu speed?

511


What is gnu in linux?

533


What does r mean linux?

597


What language is clang written in?

491


The head command writes the how many lines of a file to screen?

549


What is nslookup command?

521


Which of the following tasks cannot be accomplished with the touch command?

556