How do I shutdown linux?



  • The shutdown command has two ways of running, one is to shutdown the system completely to power it off, or shutdown and boot up the system again

    The quick way

    # shutdown -h 0 
    

    or

    # shutdown -h now
    Shutdown a predefined time
    
    # shutdown -h 20:00 "System will be down for maintenance"
    Shutdown and then reboot
    
    # shutdown -r 0
    

    or

    # shutdown -r now
    

    The poweroff command, which can manipulate power to hardware before shutting down, halting or rebooting

    The init command also bring down the system to certain run levels for maintenance


Log in to reply
 

© Lightnetics 2024