Created
November 26, 2021 08:00
-
-
Save jnraptor/adba6118e09762a98ef984a955138a4d to your computer and use it in GitHub Desktop.
bash Aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1='\[\033[0;32m\]\u@\h\[\033[0;3m\] \w\[\033[00m\]: ' | |
export PS1='\[\033[0;35m\]\u@\h\[\033[0;33m\] \w\[\033[00m\]: ' | |
#export rvmsudo_secure_path=1 | |
alias ls="ls -GFh" | |
alias ll="ls -GFhla" | |
alias s="source ~/.bashrc" | |
alias n="sudo nano" | |
alias r="sudo rmate" | |
alias free="free -m" | |
alias ping6="ping6 -c 4" | |
alias ping="ping -c 4" | |
alias dnsserver1="dig whoami.akamai.net +short" | |
alias dnsserver="dig +short txt whoami.ds.akahelp.net" | |
alias dns4server="dig +short txt whoami.ipv4.akahelp.net" | |
alias dns6server="dig +short txt whoami.ipv6.akahelp.net" | |
alias ports="sudo netstat -plntu" | |
alias df='df -x "overlay" -x "squashfs"' | |
alias update="sudo apt update" | |
alias install="sudo apt install" | |
alias upgrade="sudo apt upgrade" | |
alias dupgrade="sudo apt dist-upgrade" | |
alias remove="sudo apt remove" | |
alias purge="sudo apt purge" | |
alias clean="sudo apt clean" | |
alias autoremove="sudo apt autoremove" | |
alias reload="sudo systemctl daemon-reload" | |
alias autoapt="time sudo $HOME/bin/apt-automate" | |
alias ipstart="sudo netfilter-persistent start" | |
alias ipsave="sudo netfilter-persistent save" | |
alias ipflush="sudo netfilter-persistent flush" | |
alias sshaws="ssh aws1" | |
alias docker_prune="docker system prune -a --volumes" | |
alias docker_ips="docker inspect -f '{{.Name}} - {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' \$(docker ps -aq)" | |
alias dc="sudo docker-compose" | |
#source /etc/profile.d/rvm.sh | |
alias dc="docker-compose" | |
alias dcup="docker-compose up --build -d --remove-orphans" | |
alias dlite="docker exec -it litespeed" | |
alias sudo='sudo ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment