What command can be used to check if a directory exists or not, within a Bash shell script?
if [ -d "$Directory" -a -w "$Directory" ] then #Statements fi
The above code checks if the directory exists and if it is writable.