日期:2014-05-16 浏览次数:20919 次
-d, --directory
list directory entries instead of contents, and do not dereference symbolic links
$] ls *
dir1:
file_in_dir1
dir2:
file_in_dir2
$] ls -d *
dir1 dir2
$] tree
.
├── dir1
│?? └── file_in_dir1
└── dir2
└── file_in_dir2
2 directories, 2 files
$] ls dir*
dir1:
file_in_dir1
dir2:
file_in_dir2
$] ls dir* -d
dir1 dir2