added some additional systemd utility alias and functions
parent
9a90125ac5
commit
3be1dc8325
|
@ -11,3 +11,6 @@ alias sdle="systemctl list-unit-files | grep enabled"
|
||||||
alias sdpidu="systemctl show --property MainPID --value"
|
alias sdpidu="systemctl show --property MainPID --value"
|
||||||
alias sdmt="sudo systemctl list-units -t mount --all"
|
alias sdmt="sudo systemctl list-units -t mount --all"
|
||||||
alias sded="sudo systemctl edit"
|
alias sded="sudo systemctl edit"
|
||||||
|
alias sdcat="sudo systemctl cat"
|
||||||
|
alias sdsh="sudo systemctl show --all"
|
||||||
|
|
||||||
|
|
|
@ -50,3 +50,19 @@ loginctl disable-linger
|
||||||
function sdstub {
|
function sdstub {
|
||||||
[[ $(loginctl show-user "$USER" --property=Linger | cut -d= -f2) == 'yes' ]] && echo enabled || echo disabled
|
[[ $(loginctl show-user "$USER" --property=Linger | cut -d= -f2) == 'yes' ]] && echo enabled || echo disabled
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sdcatg(){
|
||||||
|
systemctl cat "$1" | grep "$2"
|
||||||
|
}
|
||||||
|
|
||||||
|
function sdshg(){
|
||||||
|
systemctl show "$1" | grep "$2"
|
||||||
|
}
|
||||||
|
|
||||||
|
function sdcatug(){
|
||||||
|
systemctl cat --user "$1" | grep "$2"
|
||||||
|
}
|
||||||
|
|
||||||
|
function sdshug(){
|
||||||
|
systemctl show --user "$1" | grep "$2"
|
||||||
|
}
|
Loading…
Reference in New Issue