How to check if directory exists or not from command line

How to check if directory exists or not from command line
if test -d ./apps/; then echo "exist"; else echo "not_exist"; fi

Yorumlar