Why doesn't the command:
ls -ad /*
...show both hidden and non-hidden directories? And given this does not work, what would be the simplest command for showing hidden and non-hidden directories, without showing files?
Thanks!
Why doesn't the command:
ls -ad /*
...show both hidden and non-hidden directories? And given this does not work, what would be the simplest command for showing hidden and non-hidden directories, without showing files?
Thanks!
/*
is expanded by the shell before ls
ever runs. The expansion only includes non-hidden files unless the dotglob
option is set. Also, if you want the expansion limited to directories, use /*/
instead.