Browse Source

ssu + ssu4 aliases

master
pvincent 1 year ago
parent
commit
8500824785
  1. 6
      bash.bashrc

6
bash.bashrc

@ -197,6 +197,12 @@ alias egrep='egrep $COLOR_OPTIONS'
alias transfer_cp='rsync -a --info=progress2 --no-inc-recursive'
# shellcheck disable=SC2142
alias ssu="ss -ntelp | perl -pne 'if(/uid:(\\d+)/){@a=getpwuid(\$1);s/uid:(\\d+)/user:\$a[0]/}'"
# shellcheck disable=SC2142
alias ssu4="ss -ntel4p | perl -pne 'if(/uid:(\\d+)/){@a=getpwuid(\$1);s/uid:(\\d+)/user:\$a[0]/}'"
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.

Loading…
Cancel
Save