Some computer FAQ mostly Linux/Mac

List a directory to a text file
Use ls and pipe and more

This will list to the file tester.txt, in the current directory, unless you specify another directory, and then open the file for you to check using more.

[20:11:18$]

ls -R1 /pathname-of-folder-you-want-to-list/>> tester.txt | more tester.txt


Remembering commands and how to use them to do what you want to do ....