aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.zsh.after/aliases.zsh42
1 files changed, 28 insertions, 14 deletions
diff --git a/.zsh.after/aliases.zsh b/.zsh.after/aliases.zsh
index ec4f243..f7c6ac9 100644
--- a/.zsh.after/aliases.zsh
+++ b/.zsh.after/aliases.zsh
@@ -65,13 +65,23 @@ alias sdptree='tree -aC /usr/lib/systemd/'
alias sdstree='tree -aC /etc/systemd/'
alias sdutree='tree -aC $HOME/.config/systemd/'
#journalctl
-alias sdj='sudo journalctl'
-alias sdjf='sudo journalctl -f' #Follow the messages
-alias sdjb='sudo journalctl -b' #Show only messages from this boot
-alias sdju='sudo journalctl -u' #Show messages of only the specified unit
-alias sdjk='journalctl _TRANSPORT=kernel' #Show kernel ring buffer
-alias sdjp='sudo journalctl _PID=' #Show all messages of specified process (PID)
+alias sdsj='sudo journalctl --system -a' #show the entire system journal
+alias sdsjf='sudo journalctl --system -af' #follow all system messages
+alias sdsjb='sudo journalctl --system -ab' #Show system messages from specific boot
+alias sdsjbf='sudo journalctl --system -ab -f' #follow only messages from this boot
+alias sdsju='sudo journalctl --system -af -u' #follow messages of only the specified unit
+alias sdsjk='journalctl -k' #show dmesg
+alias sdsjkb='journalctl -kb' #show dmesg from specific boot
+alias sdsjkf='journalctl -kf' #follow current dmesg
+alias sdsjlb='journalctl --list-boots' #list all boots
+alias sdsjp='sudo journalctl --system _PID=' #show all messages of specified system process (PID)
alias sdjgrep='sudo journalctl -an1000 |grep ' #Use a grep command to search through journal
+alias sduj='journalctl --user -a'
+alias sdujf='journalctl --user -af'
+alias sdujb='journalctl --user -ab'
+alias sdujbf='journalctl --user -afb'
+alias sdujb='journalctl --user -ab'
+alias sdujp='journalctl --user _PID=' #show all messages of specified user process (PID)
#systemd system services
alias sdsstart='sudo systemctl start'
alias sdsstop='sudo systemctl stop'
@@ -82,7 +92,7 @@ alias sdsdisable='sudo systemctl disable'
alias sdsreenable='sudo systemctl reenable'
alias sdsisactive='sudo systemctl is-active'
alias sdsisenabled='sudo systemctl is-enabled'
-alias sdsstat='sudo systemctl status --all --full'
+alias sdsstat='sudo systemctl status -a -l'
alias sdswants='sudo systemctl show -p "Wants"'
alias sdswantedby='sudo systemctl show -p "WantedBy"'
alias sdsrequires='sudo systemctl show -p "Requires"'
@@ -92,10 +102,12 @@ alias sdsconflictedby='sudo systemctl show -p "ConflictedBy"'
alias sdsbefore='sudo systemctl show -p "Before"'
alias sdsafter='sudo systemctl show -p "After"'
alias sdst='sudo systemctl list-timers'
+alias sdss='sudo systemctl list-sockets'
+alias sdsu='sudo systemctl list-units'
+alias sdsdep='sudo systemctl list-dependencies'
alias sdsreload='sudo systemctl daemon-reload'
-alias sds='sudo systemctl --all'
-alias sdserr='sudo systemctl --all --full |grep error'
-alias sdsfail='sudo systemctl --all --full |grep failed'
+alias sds='sudo systemctl -a'
+alias sdsfail='sudo systemctl -a -l --no-legend --state=failed'
alias sdsmask='sudo systemctl mask'
alias sdsunmask='sudo systemctl unmask'
#systemd user services
@@ -108,7 +120,7 @@ alias sdudisable='systemctl --user disable'
alias sdureenable='systemctl --user reenable'
alias sduisactive='systemctl --user is-active'
alias sduisenabled='systemctl --user is-enabled'
-alias sdustat='systemctl --user status --all --full'
+alias sdustat='systemctl --user status -a -l'
alias sduwants='systemctl --user show -p "Wants"'
alias sduwantedby='systemctl --user show -p "WantedBy"'
alias sdurequires='systemctl --user show -p "Requires"'
@@ -118,10 +130,12 @@ alias sduconflictedby='systemctl --user show -p "ConflictedBy"'
alias sdubefore='systemctl --user show -p "Before"'
alias sduafter='systemctl --user show -p "After"'
alias sdut='systemctl --user list-timers'
+alias sdus='systemctl --user list-sockets'
+alias sduu='systemctl --user list-units'
+alias sdudep='systemctl --user list-dependencies'
alias sdureload='systemctl --user daemon-reload'
#alias sdu='systemctl --user'
-alias sduerr='systemctl --user --all --full |grep error'
-alias sdufail='systemctl --user --all --full |grep failed'
+alias sdufail='systemctl --user -a -l --no-legend --state=failed'
alias sdumask='sudo systemctl --user mask'
alias sduunmask='sudo systemctl --user unmask'
#poweroff/reboot/isolate
@@ -133,7 +147,7 @@ alias sdsuspend='sudo systemctl suspend'
alias sda='systemd-analyze'
alias sdab='systemd-analyze blame'
if [ -x /usr/bin/xsvg ]; then
- alias sdap='xsvg $HOME/ownCloud/photos/systemd/sdap-$HOST.svg'
+ alias sdap='xsvg $HOME/cloud/photos/systemd/sdap-$HOST.svg'
fi
##PACMAN