Let’s see how we can list all files of a directory recursive in linux.
First of all install tree command tool. For Ubuntu users just issue the following command:
sudo apt-get install tree
List all files recursive:
tree -if /path/to/directory/
-i Don’t print indentation lines.
-f Print the full path prefix for each file.
List all files recursive and save the list into a file:
tree -if /path/to/directory/ > allfiles.txt