HOW TO SHUTDOWN AND REBOOT IN LINUX

The simple syntax or format for doing this is;

SHUTDOWN…

# shutdown

#shutdown <options> TIME [message]

OPTIONS:

  • p – power off
  • h – halt (a sort of “sleep” or ”hibernate”)
  • r – reboot
  • c – cancel shutdown (after initiating a shutdown within a specified time, use this option to cancel it)

 

To put the system off in 5 minutes time the command can be used this way;

# shutdown 5 “system is going down for the installation of new updates”

REBOOTING…

#reboot

Happy Linux’NG!

Share!

ALEXANDER WAYNE OMOROKUNWA

ALEXANDER WAYNE OMOROKUNWA

Chief Editor/Founder at FossNaija
A Linux enthusiast with a focus on enriching the Nigeria Linux experience and keeping a keen eye on Ubuntu and other Foss related developments.
ALEXANDER WAYNE OMOROKUNWA
READ  The Linux File System – Part 3: A forbidden tree? No!

Tell us what you think