Ubuntu – How to list all the files in a tree (a directory and its subdirs)


For a task of mine I need to list all the files in a tree (a directory, all its subdirs, all subdirs of those, etc.).

I'd prefer to see them in Nautilus or Krusader, but a command-line solution is interesting as well (in this case I will need files full names, sizes and modification times to be listed).

Best Answer

tree will be very convenient for you.

sudo apt-get install tree

using tree filepathto list the files.