Answers for "check if folder present shell"

10

shell script to check the directory exists

Directory="/opt"
if [ -d "$Directory" ];
then
	echo -e "it's exitsn"
fi
### To check if it's not exists
if [ ! -d "$Directory" ];
then 
	echo -e "It's not theren"
fi
Posted by: Guest on December-31-2020
3

how to check if in which folder are you present in linux

#linux command to check in which folder are you
pwd
Posted by: Guest on July-06-2021

Code answers related to "check if folder present shell"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language