User Controls

How to make a txt file directory of hard drive contents?

  1. #1
    Japan-Is-Eternal Naturally Camouflaged
    thread
  2. #2
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Windows, Linux, or MacOS?
  3. #3
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    All I know off the top of my head is that if you add " > filename.txt" after something like "dir" in Windows command prompt, you end up piping the result to that text file.

    And Linux has similar things, just maybe slightly different commands.

    Also, you need a switch to indicate a recursive search (can't remember what it is, but probably easily Googleable).

    And you might want to add more arguments to customize the output (modified time, creation time, file size, etc).
  4. #4
    Star Trek VI: The Undiscovered Country Dark Matter [my scoffingly uncritical tinning]
    ls -R > listing.txt
  5. #5
    Sophie Pedophile Tech Support

    cd / && tree > /tmp/list.txt
    The following users say it would be alright if the author of this post didn't die in a fire!
Jump to Top