HowTo: Restart UNIX System / Server

How do I restart UNIX server or workstation?

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

ADVERTISEMENTS

Login as root user. If you are not root use, use su or sudo command as follows:
su -
OR
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
Where,

  • -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).
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
0 comments… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.