-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_bash_aliases
58 lines (49 loc) · 1.39 KB
/
dot_bash_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Directory navigation
alias ..='cd ..'
alias ...='cd ../../../'
alias ....='cd ../../../../'
alias .....='cd ../../../../..'
alias ~="cd ~" # `cd` is probably faster to type but habit is a powerful thing.
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Networking
alias ping='ping -c 5'
alias ports='netstat -tulanp'
# System updates and cleaning for Debian/Ubuntu systems
alias update='sudo apt update && sudo apt upgrade'
alias clean='sudo apt autoremove && sudo apt autoclean'
# Quick shortcuts
alias h='history'
alias c='clear'
# Docker
alias d='docker'
alias dc='docker-compose'
alias dcls='docker container ls'
alias dils='docker image ls'
alias dps='docker ps'
alias dpsa='docker ps -a'
# Kubernetes
alias k='kubectl'
alias kgp='kubectl get pods'
alias kgs='kubectl get svc'
alias kgn='kubectl get nodes'
alias kgc='kubectl get componentstatuses'
alias kctx='kubectl config current-context'
alias kcon='kubectl config use-context'
# Git
alias gs='git status'
alias gb='git branch'
alias ga='git add'
alias gc='git commit'
alias gp='git push'
alias gpl='git pull'
alias gco='git checkout'
alias glog='git log --oneline --decorate'
# Terraform
alias tf='terraform'
alias tfp='terraform plan'
alias tfa='terraform apply'
alias tfd='terraform destroy'
# AWS CLI
alias awslist='aws ec2 describe-instances --query "Reservations[].Instances[].[InstanceId,State.Name,Tags[?Key==`Name`].Value[]]" --output table'