A system can freeze or hang rather than crash completely if some software process is stuck. Follow these steps to recover from a hung system.
Determine whether the system is running a window environment and follow these suggestions. If these suggestions don't solve the problem, go to step 2.
Make sure the pointer is in the window where you are typing the commands.
Press Control-q in case the user accidentally pressed Control-s, which freezes the screen. Control-s freezes only the window, not the entire screen. If a window is frozen, try using another window.
If possible, log in remotely from another system on the network. Use the pgrep command to look for the hung process. If it looks like the window system is hung, identify the process and kill it.
Press Control-\ to force a “quit” in the running program
and (probably) write out a core
file.
Press Control-c to interrupt the program that might be running.
Log in remotely and attempt to identify and kill the process that is hanging the system.
Log in remotely, become superuser or assume an equivalent role and reboot the system.
If the system still does not respond, force a crash dump and reboot. For information on forcing a crash dump and booting, see Forcing a Crash Dump and Rebooting the System in System Administration Guide: Basic Administration or Forcing a Crash Dump and Reboot of the System in System Administration Guide: Basic Administration .
If the system still does not respond, turn the power off, wait a minute or so, then turn the power back on.
If you cannot get the system to respond at all, contact your local service provider for help.