Assume I'm in my pwd - /home/kparisi/
What command can I run to export all directories & files from this directory and all subdirectories within it to a text file?
I don't need the contents of the files, just their names & paths (and permissions if possible)
Thanks in advance.
Use find to get a listing of all the files in a directory and its subdirectories, then pipe it to a file with the > operand.
find > list.txt
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With