You want the find command, with the type parameter:
$ find /home/foo -type d
To avoid recursing subdirectories, use -maxdepth 1
You want the find command, with the type parameter:
To avoid recursing subdirectories, use -maxdepth 1
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.