I want to list all the hidden files in a directory.
How to show only hidden files in Terminal?
You can use following code:
ls -ld .?*
Here is details:
-l use a long listing format -d, --directory list directory entries instead of contents, and do not derefer‐ ence symbolic links .?* will only state hidden files