2015-10-30 11:37:04 +01:00
|
|
|
alias ..='cd ..'
|
|
|
|
alias ...='cd ../..'
|
|
|
|
alias ....='cd ../../..'
|
|
|
|
alias .....='cd ../../../..'
|
2018-10-23 18:22:03 +02:00
|
|
|
alias rs='rsync --progress -v'
|
|
|
|
alias up='sudo apt update && sudo apt upgrade'
|
2019-03-29 11:45:11 +01:00
|
|
|
alias upnodock='sudo apt-mark hold docker-ce docker-ce-cli && sudo apt update && sudo apt upgrade && sudo apt-mark unhold docker-ce docker-ce-cli'
|
2015-10-24 00:57:07 +02:00
|
|
|
|
|
|
|
alias ll='ls -ahlF'
|
|
|
|
alias la='ls -Ah'
|
|
|
|
alias l='ls -CF'
|
2016-07-01 01:37:22 +02:00
|
|
|
alias feh='feh -d --scale-down'
|
2016-08-26 13:47:37 +02:00
|
|
|
alias camshot='fswebcam -r 640x480 --jpeg 90 -F 3 -D 1 --no-banner'
|
2015-10-24 00:57:07 +02:00
|
|
|
|
2018-05-28 19:55:53 +02:00
|
|
|
alias ta='tmux attach'
|
|
|
|
alias u='sudo ufw status numbered'
|
2018-06-08 09:59:23 +02:00
|
|
|
|
|
|
|
alias routes='ip -o routes show'
|
2018-09-08 12:11:08 +02:00
|
|
|
alias ips='ip -o addr show | grep -v br-'
|
2018-06-08 09:59:23 +02:00
|
|
|
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"
|
2018-09-08 12:11:08 +02:00
|
|
|
alias libver="ldconfig -p | grep "
|
2018-06-08 09:59:23 +02:00
|
|
|
|
2018-05-28 19:55:53 +02:00
|
|
|
alias act='sudo systemctl -l -t service --state=active'
|
|
|
|
alias fai='sudo systemctl -l -t service --state=failed'
|
|
|
|
|
2018-10-23 18:22:03 +02:00
|
|
|
# basic docker shortcuts
|
2018-05-04 08:54:21 +02:00
|
|
|
alias dps='docker container ls -a'
|
|
|
|
alias di='docker image ls'
|
2016-11-15 17:30:35 +01:00
|
|
|
alias dv='docker volume '
|
2018-06-08 09:59:23 +02:00
|
|
|
alias dvl='docker volume ls'
|
2018-05-04 08:54:21 +02:00
|
|
|
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
|
2015-10-24 00:57:07 +02:00
|
|
|
alias dstats="docker stats "'$(sudo docker ps -aq)' # shows stats thingy for all containers
|
2018-10-23 18:22:03 +02:00
|
|
|
alias drmsc="docker container ls -a | grep Exited | awk '{print $1}' | xargs docker container rm" # removes stopped containers
|
2018-05-04 08:54:21 +02:00
|
|
|
alias drmdi="docker image remove "'$(docker image ls -q -f dangling=true)' # removes non-tagged images
|
2018-10-23 18:22:03 +02:00
|
|
|
|
|
|
|
# docker swarm
|
|
|
|
alias dss='docker stack services '
|
|
|
|
alias dsd='docker stack deploy -c docker-compose.yml '
|