TOOL » LINUX » PACKAGE
Diff
Syntax
shell
diff OPTIONS FROM_FILE TO_FILE| Option | Description |
|---|---|
-y --side-by-side | Output in two columns. |
-t --expand-tabs | Expand tabs to spaces in output. |
-u -U --unified | Output NUM (default 3) lines of unified context (git like). |
-Z --ignore-trailing-space | Ignore white space at line end. |
--color | Colorize the output; Can be never always auto. |
--suppress-common-lines | Do not output common lines. |
Examples
See the difference similarly to git diff --no-index.
shell
diff -u --color=always FROM_FILE TO_FILE | less -R