How to list all files (order by name) in a Linux directory/subdir, and then export result to a text file?
closed as not a real question by Mechanical snail, Kyle Jones, Dave, Sathya♦ Jan 14 '13 at 9:41
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.
You can direct the output from a command into a file using the
will dump the output of ls to myfile.txt
Can't remember the options for recursion or sorting, Google or the man pages are your friends here - think