yang97e 发表于 2003-5-10 22:15:03

how to list the directories

How to list the directories under a certian directory??

For example: how to list only directories(not files) under /home??

if I use "ls -ld /home"it only shows "."

please help me. thanks

leiofustc 发表于 2003-5-11 10:51:52

because you use a options -d ,this option will only display thedir itselft.
Please use ls -l /home.It's ok.

yang97e 发表于 2003-5-11 12:40:55

我只想列出目录
比如 /home下的目录(不要home/下的文件)

应该怎么做??

ls -l 是 将目录与文件一起列出

albtross 发表于 2003-5-11 22:16:33

http://www.linuxsir.com/bbs/showthread.php?s=&threadid=38223&highlight=%C4%BF%C2%BC

qinghongcao 发表于 2003-5-12 11:33:58

use thecommand:

$> tree -d
页: [1]
查看完整版本: how to list the directories