directory and file listing
by Bob Cole 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?
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
to go to the man page for the ls command. Lots of flags to choose from.