[SOLVED] Sata drive contents

Status
Not open for further replies.

EmackGmack

Distinguished
Dec 2, 2009
2
0
18,510
Im trying to copy the addresses of each folder and its contents into a document file to keep records of whats on each sata drive. How can i do so in order to make contents appear in text document likes so:

/Volumes/SATA 20/R
/Volumes/SATA 20/T
/Volumes/SATA 20/U
 
Solution

Open a terminal and type

ls -aR /Volumes > filename

where "filename" is the name of the file that you want to put the contents into. If this isn't quite the result that you want, have a look at the various switches for the "ls" command as detailed here.

Open a terminal and type

ls -aR /Volumes > filename

where "filename" is the name of the file that you want to put the contents into. If this isn't quite the result that you want, have a look at the various switches for the "ls" command as detailed here.
 
Solution
Status
Not open for further replies.