HowTo: Restart UNIX System / Server

last updated in Categories

How do I restart UNIX server or workstation?

You can use the following procedure to restart a UNIX system.


Login as root user. If you are not root use, use su or sudo command as follows:
su -
sudo -i

Once logged in as root, type the reboot command to reboot the system:
# reboot
You can also use the shutdown command as follows:
# shutdown -r now
If you are using Solaris UNIX, try the following command:
# shutdown -y -i6 -g0

  • -y : Do not prompt for any questions.
  • -i6 : Indicates init level 6 which is nothing but reboot.
  • -g0: Grace period, the default is 60 seconds. To reboot immediately set it to zero (0).


Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.