Article 5MQ45 [SOLVED] Question about diff command

[SOLVED] Question about diff command

by
sofasurfer
from LinuxQuestions.org on (#5MQ45)
I know that diff command has many options. At this time I am trying to learn just the basic 'diff dir1 dir2'.
Quote from https://linuxcommando.blogspot.com/2...-in-linux.html states:

Code: "Without any option, diffing 2 directories will tell you which files only exist in 1 directory and not the other, and which are common files. Files that are common in both directories are diffed to see if and how the file contents differ."When I use this command, though, I get:
1) files in one directory and not the other
2) sub-directories in one directory and not the other
3) sub-directories in common
But I do not get files in common.
So in the quote above it states that I should see common FILES but not directories. But I am getting the opposite...common directories but not files.

Am I misunderstanding something or what?

Thanks for being understanding of my confusion.latest?d=yIl2AUoC8zA latest?i=u39YbXWgqFI:h7rj4-KaIRk:F7zBnMy latest?i=u39YbXWgqFI:h7rj4-KaIRk:V_sGLiP latest?d=qj6IDK7rITs latest?i=u39YbXWgqFI:h7rj4-KaIRk:gIN9vFwu39YbXWgqFI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments