Display only files starting with . (hidden)

dot-filesfindls

I tried to display only hidden files but don't know how to do it.

That is working (but matching also dots in other places)

ls -la | grep '\.'

Was trying adding ^ but didn't find the solution.

Best Answer

ls -ld .* will do what you want.

Related Question