[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ls and directories only



On Tue, Nov 18, 2003 at 10:32:27AM -0600, Lynn W wrote:
> I know this must be a silly question, but I have tried looking at the man and the --help and could not find it:
> 
> How does one use the ls command to display just the directories' names, and suppress those which are not directories? In MS-DOS, it was dir /ad
> 
> Doing ls -ld * does not do it as it only displays the files in the current directory.
> 
> Thanks!
> Lynn
> 

I use "find -type f" for that.



Reply to: