Useful Bash Aliases

These are some of the useful Bash aliases/functions which I use most days. Repeat repeat <count|inf> <command> [args...] Run a command n times. If the command fails, give up. n can be a number or inf to repeat forever. If the command fails more than n times, the commands' exit code is returned. repeat () { if [ "$#" -lt 2 ]; then echo "Usage: repeat <count|inf> <command> [args...]" return 1 fi…