From 4b2986e738030403ed803d6702dfd48ef694453e Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sun, 16 Jun 2024 00:09:26 +0200 Subject: [PATCH] chore(snippets): add shutdown notes --- snippets/shutdown.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 snippets/shutdown.sh diff --git a/snippets/shutdown.sh b/snippets/shutdown.sh new file mode 100644 index 0000000..8c2be7d --- /dev/null +++ b/snippets/shutdown.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env sh + +# Poweroff immediately +sudo shutdown now +sudo shutdown -h now +sudo shutdown -P +0 --no-wall + +# Reboot in 1 minutes +sudo shutdown -r '+15' +sudo shutdown -r '+15' 'heyo, reboot time!' + +# Show pending shutdown actions and time if any +sudo shutdown --show + +# Cancel pending shutdowns +sudo shutdown -c