ls -d .*
lists only hidden "items" (files & directories). (I think) technically it lists every item beginning with .
, which includes the current .
and above ..
directories.
I also know that ls -A
lists "almost all" of the items, listing both hidden and un-hidden items, but excluding .
and ..
. However, combining these as ls -dA .*
doesn't list "almost all" of my hidden items.
How can I exclude . and .. when listing hidden items?
ls -d +(.)+([^.])
(you need extglob set) – May 28 '20 at 09:52ls: cannot access +(.)+([^.]): No such file or directory
– jonnybolton16 May 28 '20 at 10:35