⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 diff.1

📁 制作2.6内核的CLFS时 使用的diffutils-2.8.7.tar.gz包
💻 1
字号:
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33..TH DIFF "1" "April 2004" "diffutils 2.8.7" "User Commands".SH NAMEdiff \- compare files line by line.SH SYNOPSIS.B diff[\fIOPTION\fR]... \fIFILES\fR.SH DESCRIPTIONCompare files line by line..TP\fB\-i\fR  \fB\-\-ignore\-case\fRIgnore case differences in file contents..TP\fB\-\-ignore\-file\-name\-case\fRIgnore case when comparing file names..TP\fB\-\-no\-ignore\-file\-name\-case\fRConsider case when comparing file names..TP\fB\-E\fR  \fB\-\-ignore\-tab\-expansion\fRIgnore changes due to tab expansion..TP\fB\-b\fR  \fB\-\-ignore\-space\-change\fRIgnore changes in the amount of white space..TP\fB\-w\fR  \fB\-\-ignore\-all\-space\fRIgnore all white space..TP\fB\-B\fR  \fB\-\-ignore\-blank\-lines\fRIgnore changes whose lines are all blank..TP\fB\-I\fR RE  \fB\-\-ignore\-matching\-lines\fR=\fIRE\fRIgnore changes whose lines all match RE..TP\fB\-\-strip\-trailing\-cr\fRStrip trailing carriage return on input..TP\fB\-a\fR  \fB\-\-text\fRTreat all files as text..TP\fB\-c\fR  \fB\-C\fR NUM  \fB\-\-context\fR[=\fINUM\fR]Output NUM (default 3) lines of copied context..TP\fB\-u\fR  \fB\-U\fR NUM  \fB\-\-unified\fR[=\fINUM\fR]Output NUM (default 3) lines of unified context..TP\fB\-\-label\fR LABELUse LABEL instead of file name..TP\fB\-p\fR  \fB\-\-show\-c\-function\fRShow which C function each change is in..TP\fB\-F\fR RE  \fB\-\-show\-function\-line\fR=\fIRE\fRShow the most recent line matching RE..TP\fB\-q\fR  \fB\-\-brief\fROutput only whether files differ..TP\fB\-e\fR  \fB\-\-ed\fROutput an ed script..TP\fB\-\-normal\fROutput a normal diff..TP\fB\-n\fR  \fB\-\-rcs\fROutput an RCS format diff..TP\fB\-y\fR  \fB\-\-side\-by\-side\fROutput in two columns..TP\fB\-W\fR NUM  \fB\-\-width\fR=\fINUM\fROutput at most NUM (default 130) print columns..TP\fB\-\-left\-column\fROutput only the left column of common lines..TP\fB\-\-suppress\-common\-lines\fRDo not output common lines..TP\fB\-D\fR NAME  \fB\-\-ifdef\fR=\fINAME\fROutput merged file to show `#ifdef NAME' diffs..TP\fB\-\-GTYPE\-group\-format\fR=\fIGFMT\fRSimilar, but format GTYPE input groups with GFMT..TP\fB\-\-line\-format\fR=\fILFMT\fRSimilar, but format all input lines with LFMT..TP\fB\-\-LTYPE\-line\-format\fR=\fILFMT\fRSimilar, but format LTYPE input lines with LFMT..TPLTYPE is `old', `new', or `unchanged'.GTYPE is LTYPE or `changed'..IPGFMT may contain:.TP%<lines from FILE1.TP%>lines from FILE2.TP%=lines common to FILE1 and FILE2.TP%[-][WIDTH][.[PREC]]{doxX}LETTERprintf-style spec for LETTER.IPLETTERs are as follows for new group, lower case for old group:.TPFfirst line number.TPLlast line number.TPNnumber of lines = L-F+1.TPEF-1.TPML+1.IPLFMT may contain:.TP%Lcontents of line.TP%lcontents of line, excluding any trailing newline.TP%[-][WIDTH][.[PREC]]{doxX}nprintf-style spec for input line number.IPEither GFMT or LFMT may contain:.TP%%%.TP%c'C'the single character C.TP%c'\eOOO'the character with octal code OOO.TP\fB\-l\fR  \fB\-\-paginate\fRPass the output through `pr' to paginate it..TP\fB\-t\fR  \fB\-\-expand\-tabs\fRExpand tabs to spaces in output..TP\fB\-T\fR  \fB\-\-initial\-tab\fRMake tabs line up by prepending a tab..TP\fB\-\-tabsize\fR=\fINUM\fRTab stops are every NUM (default 8) print columns..TP\fB\-r\fR  \fB\-\-recursive\fRRecursively compare any subdirectories found..TP\fB\-N\fR  \fB\-\-new\-file\fRTreat absent files as empty..TP\fB\-\-unidirectional\-new\-file\fRTreat absent first files as empty..TP\fB\-s\fR  \fB\-\-report\-identical\-files\fRReport when two files are the same..TP\fB\-x\fR PAT  \fB\-\-exclude\fR=\fIPAT\fRExclude files that match PAT..TP\fB\-X\fR FILE  \fB\-\-exclude\-from\fR=\fIFILE\fRExclude files that match any pattern in FILE..TP\fB\-S\fR FILE  \fB\-\-starting\-file\fR=\fIFILE\fRStart with FILE when comparing directories..TP\fB\-\-from\-file\fR=\fIFILE1\fRCompare FILE1 to all operands.  FILE1 can be a directory..TP\fB\-\-to\-file\fR=\fIFILE2\fRCompare all operands to FILE2.  FILE2 can be a directory..TP\fB\-\-horizon\-lines\fR=\fINUM\fRKeep NUM lines of the common prefix and suffix..TP\fB\-d\fR  \fB\-\-minimal\fRTry hard to find a smaller set of changes..TP\fB\-\-speed\-large\-files\fRAssume large files and many scattered small changes..TP\fB\-v\fR  \fB\-\-version\fROutput version info..TP\fB\-\-help\fROutput this help..PPFILES are `FILE1 FILE2' or `DIR1 DIR2' or `DIR FILE...' or `FILE... DIR'.If \fB\-\-from\-file\fR or \fB\-\-to\-file\fR is given, there are no restrictions on FILES.If a FILE is `-', read standard input.Exit status is 0 if inputs are the same, 1 if different, 2 if trouble..SH AUTHORWritten by Paul Eggert, Mike Haertel, David Hayes,Richard Stallman, and Len Tower..SH "REPORTING BUGS"Report bugs to <bug-gnu-utils@gnu.org>..SH COPYRIGHTCopyright \(co 2004 Free Software Foundation, Inc..brThis is free software; see the source for copying conditions.  There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE..SH "SEE ALSO"The full documentation for.B diffis maintained as a Texinfo manual.  If the.B infoand.B diffprograms are properly installed at your site, the command.IP.B info diff.PPshould give you access to the complete manual.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -