How can I use the tree command to list current directory as a tree?
If I do
tree -L 1
It only lists the directories, how can I get it to show the files as well?
|
How can I use the tree command to list current directory as a tree? If I do
It only lists the directories, how can I get it to show the files as well? |
||||
|
For Windows XP or 7, the
However, I'm guessing you're on another OS since On my Ubuntu VM (11.10), More details can be found in If you're having trouble, I suggest checking the |
||||
|
|
|
It lists both files and directories for me:
|
|||
|
|
/Lis not a valid switch for Windows XP. – Iszi Jan 9 '12 at 15:37tree -L 1will list both file and directories. If you have no files in the current directory or hidden files (.*prefix), they will not show up by default. – htor Jan 9 '12 at 16:27