Listing *only* directories?

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Tue Jan 13 22:23:53 UTC 2004


>mkdir tmp
>ls -l tmp
.
..
>ls -ld tmp
tmp rwxrw-r-- plp users yada yada

What you need must be accomplished using find:

find ./ -type d

on some machines there is a tiny script that does this. Listing file
permissions in octal is also accomplished with find. It can't be done with
ls. (see the options to -printf in find manpage).

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list