Can I have OS X print out a text file with the contents of a folder?

Discussion in 'Mac Basics and Help' started by SebZen, May 31, 2009.

  1. SebZen macrumors 6502

    Apr 12, 2009
    This is my first Mac and on my PC I would occasionally email myself a simple list consisting of what programs I have installed so that next time I format (or if something goes wrong) I would know what I had installed.

    Problem is, with this Mac I have too many quality software to type out by hand so I'm wondering if there is a program or a function built in to OS X (maybe terminal command even, but I'd prefer something visual) to list the contents of a folder and save it to a text file?

    I just want it to scan my Applications folder pretty much
  2. dukebound85 macrumors P6


    Jul 17, 2005
    5045 feet above sea level
    do this

    open terminal


    ls /applications

    copy the results in a txt file and youre set
  3. dmmcintyre3 macrumors 68020

    Mar 4, 2007
    open terminal (search with spotlight) and type:
    ls (directory[you can just drag the folder in])
  4. SebZen thread starter macrumors 6502

    Apr 12, 2009
    Of course! Forgot about it from my days experimenting with Linux :p

    ls /applications > apps.txt
    did it

Share This Page