}

Articles tagged "posix"

1 min readBeginner

Bash: How to Check if a directory exists?

If you need to check if directory exists use: if [ -d "$DIR" ];. Check here for details when you have symbolic links.