What would you do when all the processess hangs and there is
no other option in unix?

Answers were Sorted based on User's Feedback



What would you do when all the processess hangs and there is no other option in unix?..

Answer / 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

What would you do when all the processess hangs and there is no other option in unix?..

Answer / susheel narayan singh hcl

If you r working on /var direcotry and your
process hangs than you login with another
terminal and --

# fuser -v /var

to kill all the process of /var

Is This Answer Correct ?    0 Yes 0 No

What would you do when all the processess hangs and there is no other option in unix?..

Answer / gaurav verma

killall -HUP <service name> //it will automatically stop
and start the servies mentioned//

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Linux Commands Interview Questions

in unix how to change old name to new name

7 Answers   Google,


What is the command to remove Lvm ,Pv and vg

12 Answers   Tech Mahindra, TNS,


How do you rate yourself in unix(if 0 is novice and 10 is sys admin)?

2 Answers   HP,


List all the files beginning with A

10 Answers  


Why echo is used in linux?

0 Answers  






Who is unix command?

0 Answers  


In a company there are 3 groups i.e Finance, HR and Marketing. Each groups having 3 members. There is a file named as file1.txt. The permission set for the above file is rwx-rw----x. Now the question is only the members of Hr and Marketing group can view and edit the file. But the file is not accessible to the members of Finance Group. Can anyone tell me what would be the exact command for linux.root@localhost#<type the exact linux command>

3 Answers   Six Sigma,


in LINUX,What are two subtle differences in using the more and the pg commands?

2 Answers  


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?

0 Answers  


What is a makefile in linux?

0 Answers  


How will retrieves incoming mails from different web sites

4 Answers   HP, Wipro,


what is the command to make a process to run in the background from foreground?

5 Answers   Patni,


Categories