SyntaxFix
Write A Post
Hire A Developer
Questions
mkdir foo works even if the directory exists. To make it work only if the directory named "foo" does not exist, try using the -p flag.
mkdir foo
-p
Example:
mkdir -p foo
This will create the directory named "foo" only if it does not exist. :)