[olug] list just directories and not files

Sean Kelly smkelly at zombie.org
Fri Sep 2 14:47:29 UTC 2005


On Thu, Sep 01, 2005 at 08:13:06PM -0500, Brian Wiese wrote:
> Is there a way in unix to list "just the directories" and none of the 
> other files?
> 
> I could use a "find . -type d -maxdepth 1" but I'd also like to list the 
> permissions of these directories, then of course quickly change them to 
> make them all executable.
> 
> Any suggestions? =)
> 
> And note, "ls -d" does not work like I think it should, I can only use 
> it on specific directories to see permissions, like "ls -ld Maildir"

Try `ls -ld */`

Tricky, but it works.


-- 
Sean Kelly         | PGP KeyID: D2E5E296
smkelly at zombie.org | http://www.zombie.org



More information about the OLUG mailing list