Posts tagged with ‘check if directory exists bash’

How to check if directory exists in Bash script

advertisement

linuxJust wrote a script in bash shell that need to check if directory exists, else create the directory. I always need to write script that check the if a directory exists but i always forget :p. So i think it’s better for me to put this down for my later reference 🙂

To check if directory exists in bash shell script, check the command below:-

Continue reading How to check if directory exists in Bash script »