Learn how to check if a directory exists in Bash scripts using the test command with -d operator. Complete guide with examples, error handling, and best practices for directory verification.