QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 698|回复: 4

how to list the directories

[复制链接]
发表于 2003-5-10 22:15:03 | 显示全部楼层 |阅读模式
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
发表于 2003-5-11 10:51:52 | 显示全部楼层
because you use a options -d ,this option will only display the  dir itselft.
Please use ls -l /home.It's ok.
回复

使用道具 举报

 楼主| 发表于 2003-5-11 12:40:55 | 显示全部楼层
我只想列出目录
比如 /home下的目录(不要home/  下的文件)

应该怎么做??

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

使用道具 举报

发表于 2003-5-11 22:16:33 | 显示全部楼层
http://www.linuxsir.com/bbs/showthread.php?s=&threadid=38223&highlight=%C4%BF%C2%BC
回复

使用道具 举报

发表于 2003-5-12 11:33:58 | 显示全部楼层
use the  command:

$> tree -d
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-20 19:36 , Processed in 0.067363 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表