cp --verify?

Rob bitabyss at gmail.com
Sun Oct 28 11:24:56 PDT 2007


Steve Franks wrote:
> I don't see a --verify switch on cp, so I presume it does not.  Is
> there an automated way to ensure a copy has gone well byte-for-byte
> without writing a script to filter diff?  I want to be relatively sure

If you use the diff command and specify directories, it will compare the 
contents of each, as well as comparing all the files byte for byte. 
Check "man diff" -- there should also be an option to check down through 
any subdirectories as well.

   -Rob



More information about the freebsd-questions mailing list