From eb1cae2768d2a2649133cc92e903cec5f62d44a1 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sat, 13 May 2023 17:10:03 +0200 Subject: [PATCH] feat: poweroff commands --- .vscode/settings.json | 1 + knowledge base/freebsd.md | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/.vscode/settings.json b/.vscode/settings.json index 0ad21a7..4e1fcf4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -78,6 +78,7 @@ "pkexec", "polkit", "portsnap", + "poweroff", "pvresize", "radeon", "replicatedctl", diff --git a/knowledge base/freebsd.md b/knowledge base/freebsd.md index 73f05ce..2b7230a 100644 --- a/knowledge base/freebsd.md +++ b/knowledge base/freebsd.md @@ -80,6 +80,15 @@ pkg install -y 'zsh' 'zsh-autosuggestions' # Check for known vulnerabilities in *installed* applications. pkg audit -F pkg audit -Fr 'sqlite' + +# *Gently* reboot the system. +shutdown -r now +shutdown -r +30 "System will reboot" + +# *Gently* shutdown the system. +# `poweroff` is equivalent to `shutdown -p now`. +shutdown -p +5 +poweroff ``` ## Utilities worth noting