linux command if directory exists
DIR="/etc/httpd/"
if [ -d "$DIR" ]; then
### Take action if $DIR exists ###
echo "Installing config files in ${DIR}..."
else
### Control will jump here if $DIR does NOT exists ###
echo "Error: ${DIR} not found. Can not continue."
exit 1
fi
Also in C++:
- ubuntu errors were encountered while processing libc-bin
- how to copy file in ubuntu terminal
- how to calculate nearest location using longitude and latitude
- gatsby js install
- git stash pop index
- check mongodb installation
- linux execute as user
- install npm mac
- powershell command lock screen
- sudo update
- linux view kernel version
- conda install pytorch
- tic toc command bash
- git pull remote branch all
- install geth in ubuntu
- cleaning up your ubuntu system
- update every python library
- unable to get local issuer certificate git
- How to tell ping to exit after a specified number of ECHO_REQUEST packets
- how to install to mysql server in powershell
- how to execute the spring bat file from command prompt
- for loop while loop shell functions
- vim redo last undo
- how to install wtforms on mac terminal