Linux 只列出目录的方法

1. ls -d

2. find -type d -maxdepth 1

3. ls -F | grep "/$"

4. ls -l | grep "^d"

 

posted on 2019-01-07 10:21  0820LL  阅读(852)  评论(0编辑  收藏  举报

导航