CoolComputing Logo
Coupons/Deals  ·  New Promo Codes/Coupons  · October 20, 2018

Listing only directories

Posted on Thursday, March 29, 2001 @ 05:14:55 PM CST by David Yee [] [read 2022 times]

 
Tips: Linux/Unix world
"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!

Listing Only Directories Rating: 1.0/5 (5 votes cast)

Your Name:
I have read and agreed to the Review Posting Agreement.
Review Title:
Comment/Review: