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

What does cd – command do?

610


Can I delete .bash history?

521


List the three main parts of an operating system command?

510


How do I know my linux shell version?

519


You read an article that lists the following command: dd if=/dev/fdo bs=512 of=/new what does this accomplish?

571






What is dos and its commands?

614


How do I run a .sh file in linux?

561


What file type is a makefile?

530


What do you mean by directory?

567


What is linux load average?

612


Which command is used to compare the files?

496


Which command would you use to create a file system on a new hard drive?

582


How can we increase disk read performance in single command in Linux?

575


What is mkdir?

541


What does c mean in linux?

578