Skip to content

Instantly share code, notes, and snippets.

@jerrymannel
Last active June 5, 2018 10:08
Show Gist options
  • Save jerrymannel/951ee1d648e35dd8242ac78e4318f5d7 to your computer and use it in GitHub Desktop.
Save jerrymannel/951ee1d648e35dd8242ac78e4318f5d7 to your computer and use it in GitHub Desktop.
system, kubernetes, docker aliases: bash_aliases
alias ..='cd ..'
alias c='clear'
alias process='ps -eaf | grep '
alias q='exit'
alias l='ls'
alias ll='ls -l'
alias ss='source ~/.bash_aliases'
alias path='echo -e ${PATH//:/\\n}'
alias ports='netstat -tulanp tcp'
alias meminfo='free -m -l -t'
alias cpuinfo='lscpu'
alias h='history | grep '

alias d='docker'
alias dims='docker image ls'
alias dim='docker image'
alias dcons='docker container ls -a'
alias dcon='docker container'
alias dip='docker inspect -f "{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}"'

alias k='kubectl'
alias kp='kubectl get pods'
alias kdp='kubectl delete pod'
alias kd='kubectl get deployments'
alias kdd='kubectl delete deployment'
alias ks='kubectl get services'
alias kds='kubectl delete service'

function kss(){
  clear
  echo "-------- NAMESPACES --------"
  kubectl get namespaces --all-namespaces
  echo "-------- SERVICES ----------"
  kubectl get services --all-namespaces
  echo "-------- DEPLOYMENT --------"
  kubectl get deployments --all-namespaces
  echo "-------- PODS --------------"
  kubectl get pods --all-namespaces
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment