[kanchilug] 1D1C - reboot

  • From: Dhana Sekar <tkdhanasekar@xxxxxxxxx>
  • To: ILUG-C <ilugc@xxxxxxxxxxxxx>, kanchilug@xxxxxxxxxxxxx
  • Date: Thu, 27 Jun 2013 19:06:09 +0530

command: reboot
purpose: reboot, halt, poweroff - reboot or stop the system

syntax: reboot [OPTION]..

options:

-f, --force Does not invoke shutdown(8)  and  instead  performs  the  actual
      action you would expect from the name.

-p, --poweroff Instructs the halt command to instead behave as poweroff

-w, --wtmp-only Does  not  call  shutdown(8)  or  the  reboot(2) system call and
       instead only writes the shutdown record to /var/log/wtmp

--verbose Outputs slightly more verbose messages  when  rebooting,  useful
               for debugging problems with shutdown.

examples:
1.  To reboot the system
     $ reboot
     sudo permission needed for user or
     # reboot

2. To reboot system with message to users before reboot
    # shutdown -r time "message"
    -r reboot
    time to reboot
    message to all users

    # shutdown -r  +10 " system going to reboot save your work"

3. To see log of system reboot
    # last reboot

regards,
dhanasekar
Kanchilug Blog : http://kanchilug.wordpress.com

To subscribe/unsubscribe kanchilug mailing list : 
http://kanchilug.wordpress.com/join-mailing-list/

Other related posts: