How To Reboot a Solaris UNIX System Using CLI

How do I reboot a Solaris UNIX machine or server using the command / shell prompt? Is it possible to reboot the server using the ssh command?

The Solaris Unix machine must be rebooted for kernel updates and other reasons. This page explains how to reboot a Solaris Unix system using the command-line option.

Tutorial details
Difficulty level Easy
Root privileges Yes
Requirements Solaris Unix
Est. reading time 2 minutes

Rebooting a Solaris Unix system

You can use any one of the following commands. The procedure is as follows:

  1. First, login as the root user:
    su -
  2. For remote Unix server use the ssh command and then use the sudo/su:
    ssh user@solaris-server-ip-here
  3. Once logged in as the root user type the reboot command:
    reboot
  4. One can reboot the box using the init command, run:
    init 6
How To Reboot a Solaris UNIX System Using CLI

How to reboot a system by using the shutdown command

You can use schedule reboot with the shutdown command. The following will reboot Solaris box in 180 seconds with a message:

shutdown -y -i6 -g 180 " ==== Rebooting for kernel and apps upgrades ====="

You can also reboot using a specific disk and/or kernel. The following example reboots using a specific disk called disk2 and kernel:

reboot "disk2 kernel.build-k2/unix"

Summing up

You can use any one of the following command to reboot your Solaris Unix system:

  • reboot command
  • init command
  • shutdown command

See the following man pages using the man command:

man reboot
man init
man shutdown

Did you find this article useful?