What command can be used to check if a directory exists or not, within a Bash shell script?
DIRECTORY=/tmp if [ -d "$DIRECTORY" ]; then echo "Exists" fi
Try online