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

How does case sensitivity affect the way you use commands?

0 Answers  


What does ls mean in linux?

0 Answers  


What language is a makefile written in?

0 Answers  


What is help command in linux?

0 Answers  


in redhat Linux wat is the command to check at ahich date and time file was created?

16 Answers  






what is mean by system calls

4 Answers   Infotech,


how is "to run even after user logs out"

2 Answers   Google,


What are the 7 types of sentences?

0 Answers  


How many types of dos commands are there?

0 Answers  


when i create SAMBA server it is ok but while i try for access from windows pc he ask me only first time smb password then i close samba login next time he can`t ask for passwd why.?

4 Answers   Wipro,


Hi guys, I am working in MNC from 1 and half year as Software Engg but not in programming, its in Information Security. Now I am doing RHEL 5(Red Hat certification) to move into Linux Admin. Can anyone please give me the future scope of this field and please send me the interview questions or links to get the idea. Thanks, Sushant.

2 Answers  


How do I check disk space in linux?

0 Answers  


Categories