Try New Technology

Create file with full directly listing (Linux)

by on Sep.06, 2020, under Linux, Techie

If you need a full listing of all the files in a folder saved to a file then use the following from a shell:

'ls' > file_list.txt

NOTE: In this case the file_list.txt file will be listed in the file_list.txt file, and to avoid this, just save the file_list.txt file to a different location than you are running the ‘ls’ command in.


Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...