How can I check if a directory exists in a Bash shell script? Asked 07 September, 2021 Viewed 1.6K times bash shell unix posix 59 Votes 30 Answers What command can be used to check if a directory exists or not, within a Bash shell script? bash shell unix posix Your reply on this question: Add Reply Cancel 30 Answer Order by Voted Recent Oldest Submit an answer Embed images in Question