Click to See Complete Forum and Search --> : [SOLVED] Command? list directories ONLY


Phaete
11-23-2004, 03:22 PM
I find that ls -d or ls -dR only returns '.'

Is there a command to list subdirectories at just one level down (and not list the files)?

tree comes close, but is recursive

Phaete
11-23-2004, 03:29 PM
ls -d */

:rolleyes:

Icarus
11-23-2004, 03:31 PM
Originally posted by Phaete
ls -d */

:rolleyes: "man ls" rocks! :p

EnigmaOne
11-23-2004, 03:56 PM
yup!


example.user@example.host[~]$ man ls rocks
Reformatting ls(1), please wait...
>snipped<
--Man-- next: rocks(6x) [ view (return) | skip (Ctrl-D) | quit (Ctrl-C) ]

Reformatting rocks(6x), please wait...
>snipped<
example.user@example.host[~]$

;)