ls 中-d参数解释
man ls中d参数解释为
-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