Anda di halaman 1dari 1

1.

Linux command to list only directories and subdirectories


find type d exec ls ld {} \;

2.

To list only hidden files


find type f name .* exec ls l {} \;
or
find maxdepth 1 name .[!.]*

3. To list subdirectories in current directory

ls ld */
or
ls l | grep ^d