[LINUX] Convenient diff command usage notes

Compare files

diff {File A} {File B}

Add! To the difference and compare

diff -c {File A} {File B}

Compare case-insensitive

diff -i {File A} {File B}

If the files are the same, display as the same

diff -s {File A} {File B}

If the contents of the file are different, display as different without displaying the contents

diff -q {File A} {File B}

Compare files, ignoring whitespace

diff -w {File A} {File B}

Compare by directory

diff -r {Directory A} {Directory B}

Compare by directory without displaying the contents

diff -rq {Directory A} {Directory B}

Recommended Posts

Convenient diff command usage notes
Convenient command combination
python decorator usage notes
[Python] pytest-mock Usage notes
linux sar command CPU usage
Python standard unittest usage notes
python * args, ** kwargs Usage notes
Convenient usage summary of Flask
virtualenv Basic command usage memo
[Linux convenient command] Try inserting exa
[Linux convenient command] Try inserting csview
LINUX command [wc edition] Usage example
[Linux convenient command] Try inserting bat
LAMMPS command notes (completely for yourself)