Below is a summary of all of the options that GNU
Each option has two equivalent names, one of which is a single
letter preceded by
-, and the other of which is a long name
--. Multiple single letter options (unless they take
an argument) can be combined into a single command line argument. Long
named options can be abbreviated to any unique prefix of their name.
- Treat all files as text and compare them line-by-line, even if they
do not appear to be text. See Binary.
- Ignore changes in amount of white space. See White Space.
- Ignore changes that just insert or delete blank lines. See Blank Lines.
- Change the algorithm to perhaps find a smaller set of changes. This
sdiff slower (sometimes much slower). See diff Performance.
- Use the compatible comparison program program to compare files
- Ignore changes due to tab expansion.
See White Space.
- Output a summary of usage and then exit.
- Ignore changes in case; consider upper- and lower-case to be the same.
See Case Folding.
- Ignore changes that just insert or delete lines that match regexp.
See Specified Folding.
- Print only the left column of two common lines.
See Side by Side Format.
- Put merged output into file. This option is required for merging.
- Do not print common lines. See Side by Side Format.
- Use heuristics to speed handling of large files that have numerous
scattered small changes. See diff Performance.
- Strip any trailing carriage return at the end of an input line.
- Expand tabs to spaces in the output, to preserve the alignment of tabs
in the input files. See Tabs.
- Output version information and then exit.
- Output at most columns (default 130) print columns per line.
See Side by Side Format. Note that for historical reasons, this
- Ignore white space when comparing lines. See White Space.
Note that for historical reasons, this option is