Find Hidden Files In Linux ?

Hacker

Professional
Messages
1,046
Reputation
9
Reaction score
743
Points
113
Let's assume we are in the directory Home and we want to find all hidden files (dotfiles).

For this case we can use find, which is an advanced search tool.

Simple Command Hack:
Code:
find . -name ".*"
or
Code:
find . -name ".[^.]*"

Findind hidden directories:
Code:
find . -type d -name ".*"
 
Top