diff
Linux · Text · available in the simulator
What it does
Compare two files as text and display differences.
Syntax
diff [opciones] archivo1 archivo2
Options and parameters
-iIgnore case differences.
-bignore changes in the amount of white space
-uUnified format, commonly used for patches.
diff -u a.txt b.txt-rRecursively compare directories.
diff -r dir1 dir2-wIgnore all white space.
-qReport only whether files differ.
-yDisplay differences in two columns.
Usage examples
diff f1 f2diff -i f1 f2diff a.txt b.txtdiff -u original.txt nuevo.txtdiff -u a.txt b.txtdiff -r dir1 dir2