QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 643|回复: 2

ls for files and directories

[复制链接]
发表于 2003-7-21 17:29:12 | 显示全部楼层 |阅读模式
How to use "ls" to list only files or only directories?
发表于 2003-7-21 18:16:16 | 显示全部楼层
ls -la 列出本目录下详细目录和文件信息!
当然你ls --help的帮助是最好的了!
也可以看看这里:
http://www.ourlinux.net/wz/Article_show.php?id=160
回复

使用道具 举报

发表于 2003-7-21 20:49:33 | 显示全部楼层
ls -l|grep "^-" to list only files.
ls -l|grep "^d" to list only directories
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-9-20 15:34 , Processed in 0.045027 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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