MAC OS X: Forum

directory and file listing

COW Forums : Apple OS X

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Bob Cole
directory and file listing
on Jul 15, 2010 at 4:03:48 pm

When I'm reloading the files for a project, it would be very helpful to have a complete snapshot of the RAID which lists the locations and filenames. Is there a way to create a list (expandable to include subdirectories and filenames if possible) of all the directories on the drive?

Bob C


Return to posts index

Craig Thomas Quinlan
Re: directory and file listing
on Jul 15, 2010 at 7:39:29 pm

You could open Terminal and type in

cd /Volumes/[RaidName]

to bring you to the right raid volume directory location, then type

ls -R > raid_output.txt


This recursively lists all files and folders in all directories and all subdirectories, and outputs this into a text file living in your home folder, or wherever you tell it to go. This would give you a nice "snapshot" of everything on the raid.

If you want more options for sorting, type in

man ls

to go to the man page for the ls command. Lots of flags to choose from.


Return to posts index

Bob Cole
Re: directory and file listing
on Jul 15, 2010 at 10:25:50 pm

Thanks! That works well.

Bob C


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]