【发布时间】:2014-04-19 22:45:28
【问题描述】:
我只想列出隐藏的文件和文件夹(以点开头)。当我使用命令时
ls .??*
我得到了输出
.gitignore
.git:
COMMIT_EDITMSG FETCH_HEAD HEAD ORIG_HEAD branches config description hooks index info logs objects packed-refs refs
我不想要文件夹中的内容。相反,我正在寻找仅列出文件夹的输出
.gitignore
.git [different color for the folders, like the normal ls]
【问题讨论】:
-
你能解释一下为什么给出-1..我确实搜索了列出点文件并找到了ls..但没有找到没有目录的方法..当然对于使用它的人来说在它很容易找到之前..