Outputting a directory listing (ls) in Linux to a text file

So i needed to make a listing of files that were in a folder on my *Nix box. This command couldn’t be any simpler.

ls > listing.txt

I tried to figure this out on windows and it was giving me a headache. Here’s to the power of Linux!

Leave a Comment

Your email address will not be published. Required fields are marked *