add shortcuts for ip and ss
This commit is contained in:
parent
805f5a78ab
commit
e489df9293
9
.aliases
9
.aliases
|
@ -11,6 +11,13 @@ alias camshot='fswebcam -r 640x480 --jpeg 90 -F 3 -D 1 --no-banner'
|
||||||
|
|
||||||
alias ta='tmux attach'
|
alias ta='tmux attach'
|
||||||
alias u='sudo ufw status numbered'
|
alias u='sudo ufw status numbered'
|
||||||
|
|
||||||
|
alias routes='ip -o routes show'
|
||||||
|
alias ips='ip -o addr show'
|
||||||
|
alias ports="echo '... ss -tl add -n to see port numbers ;-)'; ss -tl"
|
||||||
|
alias cons="echo '... ss -t add -r to resolv hostnames ;-)'; ss -te"
|
||||||
|
alias socks="echo '... ss -xl add -r to resolv hostnames ;-)'; ss -xl"
|
||||||
|
|
||||||
alias act='sudo systemctl -l -t service --state=active'
|
alias act='sudo systemctl -l -t service --state=active'
|
||||||
alias fai='sudo systemctl -l -t service --state=failed'
|
alias fai='sudo systemctl -l -t service --state=failed'
|
||||||
|
|
||||||
|
@ -20,7 +27,7 @@ alias dsd='docker stack deploy -c docker-compose.yml '
|
||||||
alias dps='docker container ls -a'
|
alias dps='docker container ls -a'
|
||||||
alias di='docker image ls'
|
alias di='docker image ls'
|
||||||
alias dv='docker volume '
|
alias dv='docker volume '
|
||||||
alias dls='docker volume ls'
|
alias dvl='docker volume ls'
|
||||||
alias dip="docker container inspect -f '{{ .NetworkSettings.IPAddress }}'" # call with <container name> or ID
|
alias dip="docker container inspect -f '{{ .NetworkSettings.IPAddress }}'" # call with <container name> or ID
|
||||||
alias dih="docker container inspect -f '{{ .Config.Hostname }}'" # call with <container name> or ID
|
alias dih="docker container inspect -f '{{ .Config.Hostname }}'" # call with <container name> or ID
|
||||||
alias dstats="docker stats "'$(sudo docker ps -aq)' # shows stats thingy for all containers
|
alias dstats="docker stats "'$(sudo docker ps -aq)' # shows stats thingy for all containers
|
||||||
|
|
Loading…
Reference in New Issue