How can I check if a directory exists in a Bash shell script? How can I check if a directory exists in a Bash shell script? unix unix