Directory="/opt" if [ -d "$Directory" ]; then echo -e "it's exits " fi ### To check if it's not exists if [ ! -d "$Directory" ]; then echo -e "It's not there " fi