if [ -d "directory" ]; then echo "directory exists" fi if [ ! -d "directory" ]; then echo "Directory Exists" fi