Skip to content

nixCraft

Linux and Unix tutorials for new and seasoned sysadmin

  • Home
  • About
  • Linux Shell Scripting TutoriaL
  • RSS/Feed
  • Donations
  • Search

nixCraft

Linux and Unix tutorials for new and seasoned sysadmin

nixCraft

HowTo: Restart UNIX System / Server

last updated July 6, 2010 in Categories UNIX

How do I restart UNIX server or workstation?

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

Adblock detected 😱
My website is made possible by displaying online advertisements to my visitors. I get it! Ads are annoying but they help keep this website running. It is hard to keep the site running and producing new content when so many people block ads. Please consider donating money to the nixCraft via PayPal/Bitcoin, or become a supporter using Patreon.

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).

Share on Facebook Twitter

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.

Related Tutorials

  • Reboot a Solaris UNIX System
  • Reboot UNIX System Command
  • How to use shutdown command under Ubuntu Linux
  • Best Method To Reboot Remote Linux / Windows / UNIX Server
  • FreeBSD or BSD reboot and shutdown system
  • Reboot Linux System Command
  • SSH restart Linux system using reboot command
  • Linux / UNIX: Getting information about reboots and shutdowns
  • How to shutdown / reboot the remote Linux server from the CLI
  • HowTo: Shutdown Linux System

Your support makes a big difference:

I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft takes a lot of my time and hard work to produce. If everyone who reads nixCraft, who likes it, helps fund it, my future would be more secure. You can donate as little as $1 to support nixCraft:

Become a Supporter Make a contribution via Paypal/Bitcoin

Post navigation

Previous FAQ: Previous post: Solaris UNIX: Show All Network Interfaces
Next FAQ: Next post: Shut Down a Solaris UNIX System
Tagged as: Tags grace period, reboot command, root user, shutdown -r, shutdown -r now, shutdown -y -i6 -g0, shutdown command, system login, system server, UNIX, unix server, unix system, workstation

Cool Linux penguin shirt

FEATURED ARTICLES

  • 1
    30 Cool Open Source Software I Discovered in 2013
  • 2
    30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
  • 3
    Top 32 Nmap Command Examples For Linux Sys/Network Admins
  • 4
    25 PHP Security Best Practices For Linux Sys Admins
  • 5
    30 Linux System Monitoring Tools Every SysAdmin Should Know
  • 6
    40 Linux Server Hardening Security Tips
  • 7
    Linux: 25 Iptables Netfilter Firewall Examples For New SysAdmins
  • 8
    Top 20 OpenSSH Server Best Security Practices
  • 9
    Top 25 Nginx Web Server Best Security Practices
  • 10
    My 10 UNIX Command Line Mistakes

Sign up for my newsletter

Sign up for my newsletter



RSS Recently updated

  • Understanding /etc/passwd File Format
  • How to install and use Nginx on OpenSUSE Linux server
  • Debian / Ubuntu Linux Delete Old Kernel Images Command
  • How to generate RSS 2.0 feed quickly using Python
  • [How to] Linux Change or Rename User Name and UID
  • Bash Assign Output of Shell Command To Variable
  • Bash check if process is running or not on Linux / Unix
  • FreeBSD Find Out All Installed Hard Disk Size Information
  • How to delete empty lines using sed command under Linux / UNIX
  • Linux prevent unprivileged users from viewing dmesg command outputs

Corporate Patron

  • Linode
  • Cloudflare
  • Prospect One
nixCraft ©2000-2019 nixCraft. All rights reserved.
  • PRIVACY
  • TERM OF SERVICE
  • CONTACT/EMAIL
  • DONATIONS
  • Search