14

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.

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

To restart your machine just use

reboot

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

  • Hi some thing like int0 to init 6... which mode it ll change..? – Akshay Aug 27 '12 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 '12 at 7:21
  • @Michaek IT wont go to different mode. like init1 or some other – Akshay Aug 27 '12 at 7:24
  • 2
    May be: sudo reboot is better. – shasi kanth Jun 19 '14 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 '14 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.

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

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.