What is the command to restart a Linux server?

commands
centos
sysadmin

#1

Hi,

What is the command to restart a Linux server that is hosted in remote data center? Do I need to unmount files and directory. What is the exact sequence of command that I need to type? Or just type reboot and be done with it? Some people say we need to use su and other said we need to sudo and become the root user. How much time it will take to reboot my box?


#2

Command to restart a Linux server (enter your own password when prompted):

sudo reboot

OR

sudo shutdown -r 0

OR

sudo shutdown -r now

If you want to use su to become a root, run (enter root user password when prompted):

su -

Followed by

reboot

How much time it will take restart a Linux server?

That depends upon computer hardward, hard disk and ram speed along with other stuff. Usually enterprise grade hardware take 2-3 minutes to boot fully.