This page explains how to check if a directory exists in Linux or Unix shell using test, [, and [[ bash/ksh conditionals.
Check if a directory exists in Linux or Unix shell

seen from United States
seen from United Kingdom
seen from South Korea

seen from Australia
seen from Türkiye
seen from United States
seen from China
seen from Germany
seen from Singapore

seen from United States
seen from United States

seen from United States
seen from Finland
seen from United States
seen from United States
seen from China
seen from China

seen from China

seen from Malaysia
seen from India
This page explains how to check if a directory exists in Linux or Unix shell using test, [, and [[ bash/ksh conditionals.
Check if a directory exists in Linux or Unix shell