Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

(in the Linux Terminal)

I used

diff --recursive --brief dir1 dir2

and it tells me that

File dir1/file and dir2/file differ

But then, I try:

diff dir1/file dir2/file

and there is no output (which I assume means it found no differences between the files this time).... What gives?

share|improve this question

migrated from May 29 '13 at 4:59

This question came from our site for professional and enthusiast programmers.

I think your --brief is the problem ... without this option also it will only compare files with same name..

share|improve this answer
According to the man page, --brief only outputs whether files differ. So I don't see any connection with the OP's problem. – mpy May 29 '13 at 9:48

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.