17

I am new in Linux and I want to know the exact command to restart a RedHat linux server 6.3. And it has to start network drivers etc…

I am using VPN to connect to remote machine using VNC.

Can anyone help from the issue.

1
  • Are you trying to wake up a sleeping remote machine with no active network connections?
    – zero2cx
    Sep 24, 2012 at 3:55

3 Answers 3

29

To restart your machine just use

reboot

All the services that are configured to start will be started as usual.

5
  • Hi some thing like int0 to init 6... which mode it ll change..?
    – Akshay
    Aug 27, 2012 at 7:19
  • Just an addition, you have to be root for this and for restarting everything correctly, the system has to be set up correctly.
    – Michael K
    Aug 27, 2012 at 7:21
  • @Michaek IT wont go to different mode. like init1 or some other
    – Akshay
    Aug 27, 2012 at 7:24
  • 2
    May be: sudo reboot is better. Jun 19, 2014 at 10:59
  • @shasi on a standard RH installation a normal user does not have the permission to reboot. Then either edit sudoers or get a root shell and reboot.
    – Matteo
    Jun 19, 2014 at 11:11
14

Maybe I'm not understanding the question, but assuming you have root (or sudo) privileges, then /sbin/reboot (or /sbin/shutdown -r now) will perform a full system reboot.

2
  • i want restart system by remote terminal i have root acces
    – Akshay
    Aug 27, 2012 at 8:14
  • Then reboot (or /sbin/shutdown -r now) will perform a full system reboot - even if commanded from SSH
    – Andrew
    Aug 27, 2012 at 8:20
1

Not sure if this helps to you (provided I got you right). I believe you want to reboot remote linux machine.

Make sure you have root access and then run below command.

ssh root@destination_server_to_be_rebooted  reboot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.