Ubuntu – How to make *tree* list hidden files as well

command linetree

I'm using this package called tree to list sub directories and files in a given directory. It works fine except it doesn't list hidden files.

When I run tree in a folder it returns

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

But it should've returned hidden files named .folder.png in each one of these folders.

Can I make it happen?

Best Answer

Use 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).
Related Question