Shutdown and restart your Linux system

On Linux system, there are a lot of commands to shutdown and reboot your system.
This tutorial aims to detail some existing possibilities.


The init_ command interact on the __run level system and announce to each process that the system will restart or shutdown and log this action.


The shutdown command has the same effect as init with the following additional elements :

  • warning users of the current action with a display on their terminal,
  • forbid new connections to the system,
  • program the execution of the command,
  • report to processes of extinction with a SIGTERM signal.


The poweroff command is also useful since it allows direct shutdown without the shutdown command actions, which is equivalent to a halt -p:

Shutdown and restart your Linux system