Image

Imagemuerte wrote in Imagelinux

The old luxiourious "ls" command

Is there a way with ls to have it only show directories? There is the -d switch but that seems to show directory contents, not directory names. I should be able to say something like:

ls -x /tmp/foo/

and have it output all the directores in /tmp/foo. Imagentang suggested find . -type d which does what I want but that seems way lame. There should be a simple way to do it with ls, but the man page doesn't tell me. Any ideas? Maybe I'll email the gnu guys and have them add it.