[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.
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.