File tree list Mac Terminal
Try this:

find ~/Downloads/Test -name '*' -exec ls -la -print &gt; ./files.txt {} \;


~/ is equal to: /Users/XXXX

The file "files.txt" is saved in the directory that you run this command.