bash cheat sheet Get running script current directory CURR=$(dirname "$0") CURR=$(dirname $(readlink -f $0)) Read a password read -s -p "password:" MYPASS Leave nothing in the bash history unset HISTFILE export HISTFILE=/dev/null