All Projects → vikaskyadav → Awesome Bash Alias

vikaskyadav / Awesome Bash Alias

A curated list of awesome Bash aliases.

Programming Languages

bash
514 projects

Labels

Projects that are alternatives of or similar to Awesome Bash Alias

dotfiles
🏡 ~/.*
Stars: ✭ 13 (-69.77%)
Mutual labels:  zsh, zshrc
Alpharized
Super simple oh-my-zsh theme optimized to work with solarized dark
Stars: ✭ 12 (-72.09%)
Mutual labels:  zsh, zshrc
dotfiles
🚀 tmux, ohmyzsh, powerlevel10k, neovim 🔧
Stars: ✭ 24 (-44.19%)
Mutual labels:  zsh, zshrc
Dotfiles
Get ready for dotfiles. Contains i3, i3blocks, rofi, dunst, picom, vim, tmux, and zsh.
Stars: ✭ 985 (+2190.7%)
Mutual labels:  zsh, zshrc
Zsh Autoenv
Autoenv for zsh
Stars: ✭ 519 (+1106.98%)
Mutual labels:  zsh, zshrc
Dotfiles
🐢 💨 Speedup your MacOS setup with this fine tuning settings
Stars: ✭ 174 (+304.65%)
Mutual labels:  zsh, zshrc
q
q - vim like macro registers for your bash and zsh shell!
Stars: ✭ 54 (+25.58%)
Mutual labels:  zsh, zshrc
dotfiles
My dotfiles for oh-my-zsh, vim and tmux 📟
Stars: ✭ 23 (-46.51%)
Mutual labels:  zsh, zshrc
Zsh Quickstart Kit
Simple ZSH quickstart for using ZSH and zgen
Stars: ✭ 366 (+751.16%)
Mutual labels:  zsh, zshrc
zshrc
📝 Zsh Configuration for nerds with zplug
Stars: ✭ 28 (-34.88%)
Mutual labels:  zsh, zshrc
Ubuntu On Steroids
Developer setup & configuration guide for Ubuntu.
Stars: ✭ 111 (+158.14%)
Mutual labels:  zsh, zshrc
Dotfiles
Dotfiles for all :D
Stars: ✭ 700 (+1527.91%)
Mutual labels:  zsh, zshrc
Dotfiles
What tools and plugins I use for web development?
Stars: ✭ 73 (+69.77%)
Mutual labels:  zsh, zshrc
Black Void Zsh
🔮 Awesome, Customable Zsh Starter Kit 🌠🌠
Stars: ✭ 206 (+379.07%)
Mutual labels:  zsh, zshrc
dotfiles
Dotfiles & Developer Environment. Supports Ubuntu2004+, macOS Catalina+, Windows 10 w WSL
Stars: ✭ 30 (-30.23%)
Mutual labels:  zsh, zshrc
Dotfiles
💾 Ian's dotfiles, utils, and Zsh/Vim/tmux configs
Stars: ✭ 554 (+1188.37%)
Mutual labels:  zsh, zshrc
Dotfiles
🐲 My Arch Linux config [i3-gaps + i3blocks + Zsh + Spacemacs + Rofi + Alacritty + Neofetch]
Stars: ✭ 725 (+1586.05%)
Mutual labels:  zsh, zshrc
Dotfiles
`~/dotfiles` to setup my dev env on macOS based around `neovim` and `tmux`
Stars: ✭ 20 (-53.49%)
Mutual labels:  zsh
Nord Guake
An arctic, north-bluish clean and elegant Guake color theme.
Stars: ✭ 20 (-53.49%)
Mutual labels:  zsh
Cfgs
My personal configs
Stars: ✭ 14 (-67.44%)
Mutual labels:  zsh

awesome-bash-alias

A curated list of awesome Bash aliases.

Website: https://vikaskyadav.github.io/awesome-bash-alias/

# Calculator

  • alias bc="bc -l"

# Clear

  • alias c="clear"
  • alias cl="clear"
  • alias ckear="clear"
  • alias clr="clear"

# Change Directories

  • alias .="cd .."
  • alias ..="cd ../.."
  • alias ...="cd ../../.."
  • alias ....="cd ../../../.."
  • alias .....="cd ../../../../.."

OR

  • alias ..="cd .."

  • alias ...="cd ../.."

  • alias ....="cd ../../.."

  • alias .....="cd ../../../.."

  • alias ......="cd ../../../../.."

  • alias .1="cd .."

  • alias .2="cd ../.."

  • alias .3="cd ../../.."

  • alias .4="cd ../../../.."

  • alias .5="cd ../../../../.."

  • alias ..1="cd .."

  • alias ..2="cd ../.."

  • alias ..3="cd ../../.."

  • alias ..4="cd ../../../.."

  • alias ..5="cd ../../../../.."

  • alias cd..="cd .."

  • alias cd...="cd ../.."

  • alias cd....="cd ../../.."

  • alias cd.....="cd ../../../.."

  • alias cd......="cd ../../../../.."

  • alias cd1="cd .."

  • alias cd2="cd ../.."

  • alias cd3="cd ../../.."

  • alias cd4="cd ../../../.."

  • alias cd5="cd ../../../../.."

# useful Docker functions

  • dock-run() { sudo docker run -i -t --privileged [email protected] ;}
  • dock-exec() { sudo docker exec -i -t [email protected] /bin/bash ;}
  • dock-log() { sudo docker logs --tail=all -f [email protected] ;}
  • dock-port() { sudo docker port [email protected] ;}
  • dock-vol() { sudo docker inspect --format '{{ .Volumes }}' [email protected] ;}
  • dock-ip() { sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' [email protected] ;}
  • dock-rmc() { sudo docker rm sudo docker ps -qa --filter 'status=exited' ;}
  • dock-rmi() { sudo docker rmi -f sudo docker images | grep '^<none>' | awk '{print $3}' ;}
  • dock-stop() { sudo docker stop $(docker ps -a -q); }
  • dock-rm() { sudo docker rm $(docker ps -a -q); }

*dock-do() { if [ "$#" -ne 1 ]; then echo "Usage: $0 start|stop|pause|unpause|" fi

for c in $(sudo docker ps -a | awk '{print $1}' | sed "1 d") do sudo docker $1 $c done }

# Kubernetes commands

  • alias k="kubectl"
  • alias ka="kubectl apply -f"
  • alias kpa="kubectl patch -f"
  • alias ked="kubectl edit"
  • alias ksc="kubectl scale"
  • alias kex="kubectl exec -i -t"
  • alias kg="kubectl get"
  • alias kga="kubectl get all"
  • alias kgall="kubectl get all --all-namespaces"
  • alias kinfo="kubectl cluster-info"
  • alias kdesc="kubectl describe"
  • alias ktp="kubectl top"
  • alias klo="kubectl logs -f"
  • alias kn="kubectl get nodes"
  • alias kpv="kubectl get pv"
  • alias kpvc="kubectl get pvc"

# Docker commands

  • alias dl="sudo docker ps -l -q"
  • alias dps="sudo docker ps"
  • alias di="sudo docker images"
  • alias dip="sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}'"
  • alias dkd="sudo docker run -d -P"
  • alias dki="sudo docker run -i -t -P"
  • alias dex="sudo docker exec -i -t"
  • alias drmf='sudo docker stop $(sudo docker ps -a -q) && sudo docker rm $(sudo docker ps -a -q)'

# Estimate file space usage to maximum depth

  • alias du1="du -d 1"

# Git commands

  • alias gs="git status"
  • alias gst="git status -sb"
  • alias gl="git log"
  • alias ga="git add"
  • alias gaa="git add -A"
  • alias gal="git add ."
  • alias gall="git add ."
  • alias gca="git commit -a"
  • alias gc="git commit -m"
  • alias gcot="git checkout"
  • alias gchekout="git checkout"
  • alias gchckout="git checkout"
  • alias gckout="git checkout"
  • alias go="git push -u origin"
  • alias gsh='git stash'
  • alias gw='git whatchanged'
  • alias gitlg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
  • alias nah="git clean -df && git checkout -- ."

# History commands

  • alias h="history"
  • alias h1="history 10"
  • alias h2="history 20"
  • alias h3="history 30"
  • alias hgrep='history | grep'

# List commands

  • alias l="ls"
  • alias l='ls -lAh'
  • alias ls="ls -a"
  • alias la="ls -a"
  • alias ll="ls -al"

# Ping Commands

  • alias pg="ping google.com -c 5"
  • alias pt="ping facebook.com -c 5"
  • alias ping="ping -c 5"
  • alias fastping="ping -c 100 -s.2"

# Exit Command

  • alias :q="exit"
  • alias ext="exit"
  • alias xt="exit"
  • alias by="exit"
  • alias bye="exit"
  • alias die="exit"
  • alias quit="exit"

# Launch Simple HTTP Server

  • alias serve='python -m SimpleHTTPServer'

# Confirmation

  • alias mv='mv -i'
  • alias cp='cp -i'
  • alias ln='ln -i'
  • alias rm='rm -I --preserve-root'

# Parenting changing perms on /

  • alias chown='chown --preserve-root'
  • alias chmod='chmod --preserve-root'
  • alias chgrp='chgrp --preserve-root'

# Install & Update utilties

  • alias sai="sudo apt install"
  • alias sai="sudo apt-get install"
  • alias sau="sudo apt update"
  • alias sau="sudo apt-get update"
  • alias update="sudo apt update"
  • alias update="yum update"
  • alias updatey="yum -y update"

# System state

  • alias reboot="sudo /sbin/reboot"
  • alias poweroff="sudo /sbin/poweroff"
  • alias halt="sudo /sbin/halt"
  • alias shutdown="sudo /sbin/shutdown"
  • alias flighton='sudo rfkill block all'
  • alias flightoff='sudo rfkill unblock all'
  • alias snr='sudo service network-manager restart'

# Show open ports

  • alias ports='sudo netstat -tulanp'

# Free and Used

  • alias meminfo="free -m -l -t"

# Get top process eating memory

  • alias psmem="ps auxf | sort -nr -k 4"
  • alias psmem10="ps auxf | sort -nr -k 4 | head -10"

# Get top process eating cpu

  • alias pscpu="ps auxf | sort -nr -k 3"
  • alias pscpu10="ps auxf | sort -nr -k 3 | head -10"

# Get details of a process

  • alias paux='ps aux | grep'

# Get server cpu info

  • alias cpuinfo="lscpu"

# Older system use /proc/cpuinfo

  • alias cpuinfo="less /proc/cpuinfo"

# Get GPU ram on desktop / laptop

  • alias gpumeminfo="grep -i --color memory /var/log/Xorg.0.log"

# Resume wget by default

  • alias wget="wget -c"

# Grabs the disk usage in the current directory

  • alias usage='du -ch | grep total'

# Gets the total disk usage on your machine

  • alias totalusage='df -hl --total | grep total'

# Shows the individual partition usages without the temporary memory values

  • alias partusage='df -hlT --exclude-type=tmpfs --exclude-type=devtmpfs'

# Gives you what is using the most space. Both directories and files. Varies on current directory

  • alias most='du -hsx * | sort -rh | head -10'

# MacOs commands

  • alias rp='. ~/.bash_profile'
  • alias myip='ifconfig en0 | grep inet | grep -v inet6 | cut -d ' ' -f2'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].