Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
What do you want to do recursively ? – Iain Dec 4 '10 at 19:58
up vote 1 down vote accepted

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.

share|improve this answer
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 posting your answer, you agree to the privacy policy and terms of service.

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