How to show only hidden files in Terminal?

Ads
Ads

How to show only hidden files in Terminal?


Java Coder
How to show only hidden files in Terminal?
2 Answer(s)      20 days ago
Posted in : Linux
Ads

Hi,

I want to list all the hidden files in a directory.

How to show only hidden files in Terminal?

View Answers

March 31, 2018 at 12:50 AM


Hi,

You can use following code:

ls -ld .?*

Thanks



March 31, 2018 at 12:50 AM


Hi,

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

Thanks


Ads