如何使* tree *也列出隐藏文件?

苏梅特·德什穆克(Sumeet Deshmukh)

我正在使用此程序包tree该程序包列出给定目录中的子目录和文件。除未列出隐藏文件外,它工作正常。

当我tree在文件夹中运行时,它会返回

├── Zodiac (2007)
│   └── Zodiac (2007).mkv
├── Zombieland (2009) H
│   └── Zombieland (2009) H.mkv
└── Zootopia (2016)
    ├── Zootopia (2016).mkv
    └── Zootopia (2016).srt

但是它应该返回.folder.png在每个文件夹中命名的隐藏文件

我可以实现吗?

赞娜

使用 tree -a

$ man tree
-a     All files are printed.  By default tree does not print hidden files 
(those beginning with a dot `.').  
In no event does tree print the file system constructs 
`.' (current directory) and `..' (previous directory).

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章