how to run recursively diff command for comparing files of file size more than 2GB in solaris?

  • What do you want to do recursively ? – Iain Dec 4 '10 at 19:58

In Solaris diff is largefile safe but not largefile aware so it can't handle files >2Gb. Solaris has the bdiff command that may help you.

  • 1
    You can also just use GNU diff, which is already installed as gdiff on many Solaris systems. – alanc Dec 4 '10 at 21:36
  • @alanc: OpenSolaris has gdiff but I don't think Solaris does by default. – Iain Dec 4 '10 at 22:06
  • GNU diff does come on the Solaris 10 companion disk. It's under /opt/sfw/bin/gdiff which may not be in your search path. – JOTN Dec 8 '10 at 1:43

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.