Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

How to check if my system was just rebooted

Answer:

Use the following command

sudo last reboot

And it will show all the reboot information, e.g.

reboot system boot 2.6.27-7-server Sat Jan 2 19:03 - 20:39 (01:35)
...

How to restart a frozen Linux System?

Answer:

Try the following two simple methods first:

  1. Hold down Ctrl+Alt+Backspace if you are in graphic mode
  2. if not work, then hold down "Ctrl+Alt+F1" to get into the shell and use the "reboot" command to reboot

If still not work, do the following:

  1. Hold down the Alt and SysRq (Print Screen) keys
  2. While holding those down, type the following in order: REISUB
  3. You computer will reboot now