What's a simple way to list the immediate subdirectories of a given location?

Posted by Bribles on Server Fault See other posts from Server Fault or by Bribles
Published on 2010-03-26T21:34:13Z Indexed on 2010/03/26 21:43 UTC
Read the original article Hit count: 269

Filed under:
|
|
|

Is there a built-in command or a less verbose way of achieving this?

find /var/foo -maxdepth 1 -type d

Or should I just make a tiny shell script or function if I'm doing this sort of thing often?

© Server Fault or respective owner

Related posts about linux

Related posts about find