bash: Function sctl

This commit is contained in:
Michael Grote 2022-02-24 16:31:09 +01:00
parent 0132215e23
commit ea48b8c7fa

View file

@ -161,7 +161,16 @@ function ll {
ls -lah "$@"
fi
}
function sctl {
case "$1" in
"")
echo "[ERROR] Argument/Unit missing."
;;
*)
sudo /usr/bin/systemctl "$1" "$2"
sudo /usr/bin/systemctl status "$2"
esac
}
### Aliase
# tmux