Search notes:

Shell command: shutdown

shutdown halts, powers-off or reboots the machine and optionally sends a message to all logged-in users.
shutdown [option…] time [message]

Options

-r Reboot when shutdown has completed
-h Halt or power off the system (the choice as to which is left up to the system).
-H Halt system
-P Power off system
-c Cancels a previously initiated shutdown. time cannot be specified with this option (i. e. the first argument is message)
-k Only send message and disable logins whithout shutting down tye system

time

The value for time can be

Inhibitors

$ shutdown -h now
User root is logged in on tty1.
Please retry operation after closing inhibitors and logging out other users.
Alternatively, ignore inhibitors and users with 'systemctl poweroff -i'.

See also

On Windows, there is shutdown.exe.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/sh...', 1758200354, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/shell/commands/shutdown(67): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78