Reputation: 152294
Quick example - I would like to list content of all ~/.*
directories, so:
ls -la ~/.*
However it lists also all current dir .
and upper dir ..
How can I exclude .
and ..
?
Upvotes: 2
Views: 260
Reputation: 98118
From ls man-page:
-A, --almost-all
do not list implied . and ..
so it will be:
ls -lA ~/.*
Upvotes: 5