The command ditto is a unix based command that can be used in Terminal on OS X. Ditto is useful if you have a hard drive that is failing or if you need to transfer data from one directory to another. There are other commands that can perform this same function, but I find ditto a much better option as it preserves resource forks in each directory and file. The command will grab any files in a specified directory and copy them. If the hard drive is failing or the file is corrupted, Terminal will skip over them and move on. Compare this to the normal method of copying. If a portion of the drive is failing and you attempt to copy a directory, the copy will fail, and almost no data will be transferred.
The command itself is rather easy to remember: ditto src_directory dest_directory. src_directory and dest_directory can be manually typed in or the actual folder you want to copy can be dragged onto the terminal window; Terminal will do a lot of work for you if you let it. My preference when using ditto is to use the -V option, which outputs all files and folders copied to the new location. Without using an option, or modifier, there will not be an output or visual indicator that files are being copied.
For instance, if I wanted to copy another user folder from my internal hard drive to my external hard drive, the command would look something like Continue reading »