我正在使用此程序包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] 删除。
我来说两句