If you are not familiar with the find command, check out our Getting Started article.
Let's say /tmp/example contains a hidden directory, like this.
/tmp/example/.hidden_directory
The following command can be used to return file and directory, including hidden directories.
find /tmp/example -name "*"
The following should be displayed. In this scenario, both the parent directory (/tmp/example) and everything within the parent directory will be returned.
/tmp/example
/tmp/example/.hidden_directory
The following command can be used to only display hidden directories.
find /tmp/example -name ".*"
The following should be displayed. In this scenario, files and directories beginning with a period followed by anything will be returned.
/tmp/example/.hidden_directory