Casey Wise projects and web archive/sandbox

17Apr/120

How to list directories only on the unix/linux command line

Posted by Casey Wise

Disturbingly, this was a difficult answer to find. I'm looking for the fastest most concise command to list out directories only. Here's what I found/came up with:

ls -d */

And then to list them vertically, throw a 1(numeral one) in your switches

ls -1d */
Tagged as: , No Comments