Posted on Thursday, March 29, 2001 @ 05:14:55 PM CST by David Yee [profile] [read 1971 times]
"ls" doesn't support listing only directories. Use "find" to do this:
find . -type d ! -name "." -prune -print
You might want to put this in your .bashrc as an alias:
alias lsdir='find . -type d ! -name "." -prune -print'
Please rate this article or post a brief review of Listing only directories or comment on benchmark/performance, features, availability, price or anything else regarding Listing only directories. Thanks!