AutoCAD 3DMAX C語言 Pro/E UG JAVA編程 PHP編程 Maya動畫 Matlab應用 Android
Photoshop Word Excel flash VB編程 VC編程 Coreldraw SolidWorks A Designer Unity3D
 首頁 > Linux

Linux 指令篇:文件管理--diff

51自學網 http://www.0532cf.com

功能說明:比較文件的差異。

語  法:diff [-abBcdefHilnNpPqrstTuvwy][-<行數>][-C <行數>][-D <巨集名稱>][-I <字符或字符串>][-S <文件>][-W <寬度>][-x <文件或目錄>][-X <文件>][--help][--left-column][--suppress-common-line][文件或目錄1][文件或目錄2]

補充說明:diff以逐行的方式,比較文本文件的異同處。所是指定要比較目錄,則diff會比較目錄中相同文件名的文件,但不會比較其中子目錄。

參  數:
 -<行數>  指定要顯示多少行的文本。此參數必須與-c或-u參數一并使用。
 -a或--text  diff預設只會逐行比較文本文件。
 -b或--ignore-space-change  不檢查空格字符的不同。
 -B或--ignore-blank-lines  不檢查空白行。
 -c  顯示全部內文,并標出不同之處。
 -C<行數>或--context<行數>  與執行"-c-<行數>"指令相同。
 -d或--minimal  使用不同的演算法,以較小的單位來做比較。
 -D<巨集名稱>或ifdef<巨集名稱>  此參數的輸出格式可用于前置處理器巨集。
 -e或--ed  此參數的輸出格式可用于ed的script文件。
 -f或-forward-ed  輸出的格式類似ed的script文件,但按照原來文件的順序來顯示不同處。
 -H或--speed-large-files  比較大文件時,可加快速度。
 -l<字符或字符串>或--ignore-matching-lines<字符或字符串>  若兩個文件在某幾行有所不同,而這幾行同時都包含了選項中指定的字符或字符串,則不顯示這兩個文件的差異。
 -i或--ignore-case  不檢查大小寫的不同。
 -l或--paginate  將結果交由pr程序來分頁。
 -n或--rcs  將比較結果以RCS的格式來顯示。
 -N或--new-file  在比較目錄時,若文件A僅出現在某個目錄中,預設會顯示:
Only in目錄:文件A若使用-N參數,則diff會將文件A與一個空白的文件比較。 
 -p  若比較的文件為C語言的程序碼文件時,顯示差異所在的函數名稱。
 -P或--unidirectional-new-file  與-N類似,但只有當第二個目錄包含了一個第一個目錄所沒有的文件時,才會將這個文件與空白的文件做比較。
 -q或--brief  僅顯示有無差異,不顯示詳細的信息。
 -r或--recursive  比較子目錄中的文件。
 -s或--report-identical-files  若沒有發現任何差異,仍然顯示信息。
 -S<文件>或--starting-file<文件>  在比較目錄時,從指定的文件開始比較。
 -t或--expand-tabs  在輸出時,將tab字符展開。
 -T或--initial-tab  在每行前面加上tab字符以便對齊。
 -u,-U<列數>或--unified=<列數>  以合并的方式來顯示文件內容的不同。
 -v或--version  顯示版本信息。
 -w或--ignore-all-space  忽略全部的空格字符。
 -W<寬度>或--width<寬度>  在使用-y參數時,指定欄寬。
 -x<文件名或目錄>或--exclude<文件名或目錄>  不比較選項中所指定的文件或目錄。
 -X<文件>或--exclude-from<文件>  您可以將文件或目錄類型存成文本文件,然后在=<文件>中指定此文本文件。
 -y或--side-by-side  以并列的方式顯示文件的異同之處。
 --help  顯示幫助。
 --left-column  在使用-y參數時,若兩個文件某一行內容相同,則僅在左側的欄位顯示該行內容。
 --suppress-common-lines  在使用-y參數時,僅顯示不同之處。


 
上一篇:Linux常用命令大全詳解  下一篇:Linux基本命令之date命令的參數及獲時間戳的方法
彩客网 1592c.com | www.620477.com | www.86611n.com | www.792063.com | 66287l.com | www.56011k.com | 444000.com | www.68365l.com | 2334vip7.com | www.54968g.com | 11pp8332.com | www.055w.cc | www.db2233.com | www.5854b.cc | www.ww.t7888.com | www.hcw018.com | www.10051005.com | www.332052.com | www.15221760232.com | www.222hy.cc | www.p78888.com | www.195622.com | www.hg3348.com | www.087069.com | www.bz7888.com | 33kk8332.com | www.788780.com | hg999333i.com | www.79095j.com | 6396x.com | www.5856887.com | 3844p.com | www.04567x.com | s14666.com | www.80065h.com | vip56787.com | www.933661.com | www.f5566.com | www.021037.com | www.hjcp1.com | 81366l.com | www.1851137.com | 4165i.com | www.bet73q.com | 666789.com | www.975961.com | www.vip7311.com | www.276081.com | www.jqb8.com | 3775i.com | www.7239u.com | 78113366.com | www.39957e.com | www.777800.cc | 7893w9.com | www.81520m.com | 224sun.com | www.guocai667.com | www.233449.com | 13222u.com | www.00778j.com | 55331ff.com | www.77016.net | www.a78ts.com | 22oo8332.com | www.883399e.com | uu2205.com | www.36788p.com | www.26777.cc | 5589q.com | www.6880zz.com | 9958977.com | www.608520.com | www.006071.com | 118cai.cc | www.77801j.com | www.0077hg.com | 2019x.cc | www.0270w.com | qycp04.com | 1389k.com | www.8905f.com | 1654jj.com | 3049m.com | www.c1432.com | 909310.com | www.197560.com | www.308076.com | 08530004.com | www.217880.com | www.4400ra8.com | 6220k.com | www.901591.com | www.dafabetedfa95.com | 34u35.com | www.061wy.com | www.tyc788.com | h2146.com | ra9993.com | www.40288j.com | 3823.com | www.youxin9.cc | www.y6086.com | www.77795.com | wns880.com | www.211222.cc | www.3643p.com | spj05.net | www.919725.com | www.8806488.com | 26119g.com | www.890994.com | www.61808.com | 7555y.com | www.332069.com | www.ggt.99233t.com | 0747ww.com | 0234ff.com | www.8582qq.com | www.hg1733.com | 8159m.cc | www.66376o.com | www.90544.com | 818132.com | www.50052e.com | www.55676b.com | www.f888c.com | 32355aa.com | www.0058c.com | www.8422.com | 61329911.com | x9996.com | www.fc78.com | www.o63568.com | www.bet3652018.com | 876q.com | www.669zf.com | www.bet63b.com | 4195x.com | www.y63568.com | www.838967.com | 25288k.com | www.50732u.com | www.16065l.com | www.635365.com | n2306.com | 83378f.com | www.196056.com | www.14168.com | www.52667mm.com | 3552.com | 8510.com | www.609715.com | www.7240d.com | www.861000.com | 8040ggg.com | www.900246.com | www.7920h.com | www.771671c.com | feicai0898.com | 62033.com | www.kc19.com | www.js89o.vip | www.hg6880.com | 8827ww.com | 8036tt.com | www.653546.com | www.766777.cc | www.sb5201.com | lp06.com | 8742b.com | www.566677.com | www.hg9377.com | www.03808.com | 88850gg.com | bbb4255.com | www.444086.com | www.w77929.com | www.8313c.com | 3616j.com | 3846ww.com | www.068672.com | www.8667w.com | www.0088hgdd.com | www.hg7321.com | lpj88.com | 3522q.cc | bwin8a.com | www.hj9798.com | www.hg78777.com | www.7060.cabet186.com | www.y1311.com | 80850j.com | 11163311.com | ybc17.com | www.589021.com | www.828177.com | www.1168v.com | www.yl222.com | 6556n.com | 61325522.com | yumingty5.com | 80060404.com | www.099816.com | www.hjin5.com | www.9570119.com | www.597567b.com | www.4107v.com | 16616699.com | 496rr.com | 53166s.com | 5360rr.com | www.503501.com | www.8499x.com | www.725609.com | www.5207666.com | www.634599.com | www.25288a.com | 76744.com | u72227.com | 201877886.com | 0055886.com | www.599190.com | www.1035a.com | www.37377k.com | www.918356c.com | www.25288a.com | www.554js.com | 2698r.com | 30688h.com | feicai0971.com | www.88266e.com | www.585808.com | www.rcw8833.com | www.7239x.com | www.j69096.com | www.5099jj.com | www.39277.com | www.yf220.com | www.h7788j.com | www.38200m.com | www.js883388.com | 11449193.com | 537.cc | xx3405.com | 30688a.com | 4196i.com | 4775522.com | 4086.cc | www.81678u.com | www.040426.com | www.193195.com | www.560935.com | www.584211.com | www.0014z.com | www.998855aa.com | www.41518g.com | www.50051x.com | www.53900g.com | www.60007j.com | www.66652f.com | www.6939g.com | www.7920i.com | www.565560.com | www.ly29.com | www.mgm868006.com | www.33111166.com | www.7036f.com | www.7225v.com | www.564949.com | www.39695i.com | www.jd8866.com | 3169l.com | hg999333c.com | www.0077hg.com | www.hg0051.com | www.1028522.com | www.vns9n9.com | www.033008.com | www.bd2019j.com | www.bet91484.com | www.98xpj98.com | www.62979c.com | www.820014.com | www.8881hj.com | www.75499.com | www.6177a.com | www.hg2239.com | 550111a.com | sjg007.com | 77605d.com | aobo66666.com | 0332v.com | 6396d.com | 3467s.cc | 33432y.com | 115478.com | dd3336.com | 65560033.com | 8538x.com | 66136j.com | 3685q.com | 36400066.com | 4022ii.com | 30688f.com | 68228b.com | 36403300.com | df8u.com | 6363t.com | www.js31567.com | www.28758e.com | www.zr6668.com | www.9c9cai.com | www.7249n.com | www.9356c.com | www.50026d.com | www.2109c.com | www.919309.com | www.853548.com | 8722rrrr.com | 55967e.com | V87.com | 4255i.com | jubp8.com | 55818n.com | www.18shenbo.com | www.98698w.com | www.222999qipai.com | www.50051w.com | www.hqcp3.com | b5923.com | 56988ll.com | kk3405.com | 380111666.com | LXYL352.com | www.9679r.com | www.xin8884.com | www.563736.com | www.js36686.com | www.967004.com | www.3668m.com | www.025738.com | 9964j.com | 610659.com | 79964g.com | www.hg8326.com | www.88807q.com | www.80074.com | www.89677t.com | www.6768991.com | www.608389.com | 29918zz.com | 61999pp.com | gc722.com | www.611msc.com | www.133242.com | www.pjgw22.com | www.80767l.com | www.178275.com | qq365l.com | 3640g.com | www.hg0002.com | www.755789.com | www.vns18158.com | www.997666.com | www.50989e.com | 8827cc.com | 55555ylg.com | www.550290.com | www.701556.com | www.52062y.com | www.87668j.com | 4195g.com | b2624.com | zhcp25.com | www.381111.com | www.777xx.cc | www.791317.com | 70661.com | 9506j.com | www.621155c.com | www.99113w.com | www.9478f.com | c2306.com | 3033d.com | www.00829g.com | www.91779f.com | www.75538b.com | www.126059.com | 915630.com | 33567m.com | www.888950.com | www.882229.com | www.kc66.com | 88992007.com | 8538o.com | www.4446333.com | www.49799.com | www.773570.com | www.246776.com | www.371f.cc | 0135.com | www.36kj.com | www.1368w.cc | 4508uu.com | www.836690.com | www.3478c.cc | da578.com | www.44470.com | www.zcwf2.com | 867wn.com | www.tb970.com | www.66ffd.com | 3807o.com | www.622206.com | www.920959.com | 3024k.com | www.938e.cc | www.377591.com | 8xh.vip | www.1851132.com | xpj66888.com | www.751288.com | www.81608u.com | 749102.com | www.67223g.com | www.5091t.com | 1104006.com | www.c44bb.com | www.298730.com | 83377l.com | www.js9996.com | bet88w.com | www.v22365.com | www.50054k.com | tt888l.com | www.752suncity.com | www.626507.com | 2589.com | www.hg8.vip | 12580088.com | www.000084.com | www.412228.com | 31780000.com | www.js7551.com | 64111s.com | www.7759333.com | www.130881.com | www.glc11.com | www.292200.com | 87363.com | www.98698w.com | 99151l.com | www.0860s.com | www.hy5509.com | 61324477.com | www.bb888.cc | vipvip6666.com | www.cc55826.com | 2767h.com | 9849733.com | www.0601i.com | c53.net | www.7hg6668.com | 18438cj.com | www.12345hm.com | www.506969.com | www.dz829.com | www.7793m.com | bwin8aa.com | www.js8858.com | 063910.com | www.559990.com | xx888u.com | www.77731x.com | bf5988.com | www.36kj.com | man587.com | www.wns0028.com | www.595601.com | www.1818618.com | www.w413.com | 9103jj.com | www.09299.com | 5597lkt.com | www.7714x.com | hga025.com | www.4833044.com | 55967y.com | www.75600x.com | 2214xx.com | www.5446u.com | 8448.com | www.68365i.com | 86611s.com | www.288021.com | 5219o.com | www.52062y.com | hjcp222.com | www.112.ceo | 22098s.com | www.5856858.com | 7240u.com | www.281138.com | 2078z.com | www.80075x.com | 0033s.cc | www.030.la | www.lpj555.com | www.655021.com | www.9068aa.com | www.135125.com | www.hg3839.com | 95gamevip4.com | www.hg126u.com | 66c51.com | www.3066ii.com | tiange1.com | www.9187l.com | 7605u.com | www.52303c.com | 97799w.com | www.927233.com | www.4107o.com | www.293255.com | www.53532.com | 66225156.com | www.65066aa.com | 3122s.com | www.jsggb02.com | 88888448.com | www.2632a.com | www.8494i.com | www.151220.com | www.yh215.com | 118888v.com | www.0600p.cc | 86811ww.com | www.5522d.cc | www.hg77716.com | www.53900a.com | www.3239777.com | 7720q.com | www.s98478.com | 500000576.com | www.786682.com | www.53516n.com | 61789r.com | www.n3410.com | 3522gg.com | www.22yfa.com | www.wwwjs6899.com | 5589p.com | www.xpj556677.com | hjcp44.com | www.3479c.com | www.3643r.com | 76886a.com | www.w2894.com | 667766v.com | www.606370.com | www.js664.com | dz316.com | www.66376d.com | www.733665.com | xpj66498.com | www.6880ww.com | 3379c.com | www.303482.com | www.dfh271.com | 23599v.com | www.3478c.cc | www.d8867.com | sj889.net | www.0005sc.com | www.vns995.cc | 0600c.cc | www.vns22.me | 1665f.com | hg2111.com | www.ag9456.com | 7792.com | www.81520v.com | www.xpj2070.com | 11884747.com | www.544010.com | www.938r.cc | p5429.com | www.810895.com | www.38yy.com | 67890tt.com | www.820737.com | www.ag4848g.com | lc99t.com | www.598966.com | www.1168x.com | bk080.net | www.205880.com | www.4996jn.com | 6868cc.cc | 3225s.com | www.cb700.cc | www.866918.com | 15856x.com | www.15237.cc | www.blm139.com | 4136y.com | www.444075.com | www.8881hj.com | 97799d.com | xpj728.com | www.89777j.com | www.js60f.com | 1294i.cc | www.839991.com | www.750620.com | feicai0479.com | 87965xx.com | www.997263.com | www.777444c.com | 0485y.com | www.876297.com | www.dd55826.com | vip67778.com | 61652u.com | www.50064j.com | www.833099.com | 20055577.com | 2355a.com | www.4331s.com | www.yf2112.com | yun888.com | www.127880.com | www.714115.com | www.44msc.la | 2214d.com | www.289917.com | www.8905b.com | www.3643t.com | 717blr.com | www.205059.com | www.4809n.com | www.pj5794.com | 3967k.com | www.luck878.com | www.flb677.com | www.40033.1640033.com | 11c53.com | 36554.com | www.89894n.com | www.850750.com | 7779y.cc | l82365.com | www.756586.com | www.6687u.com | www.22751.com | 30688f.com | 2019j.cc | www.2109o.com | www.yy17173.com | www.10899c.com | 4405.com | jinguan4455.com | www.8839e.com | www.8473m.com | www.27706.com | d1915d.com | 3178e.com | www.0014n.com | www.80188e.com | www.25288x.com | 486.cc | 9694k.com | www.590979.com | www.4833046.com | www.517msc.com | 9778h.cc | 7726lll.com | 061.com | www.1777ac.com | www.http://1018js.com/ | www.110732.com | feicai0536.com | 932367.com | www.167686.com | www.68568q.com | www.8883hj.com | www.25288o.com | 3844.com | 5099jj.com | www.65707e.com | www.12455k.com | www.9570116.com | www.jing6444.com | 748335.com | 4488cc.com | 068.cc | www.420421.com | www.78949z.com | www.mgm868007.com | www.33189.com | 28yuce.wang | 66671u.com | 033b.net | www.330692.com | www.52072s.com | www.j35.cc | www.158444.com | www.sun008.cc | dzhcp9.com | 4288e.com | www.178571.com | www.6611d.cc | www.flb904.com | www.rgcp22.com | www.hg8102.com | 1624zz.com | 9659t.com | 1099528.com | 8036bb.com | www.791397.com | www.66653m.com | www.v1068.com | www.445466.com | www.77537r.com | xx5144.com | jing7771.com | 64640029.com | huangma21.com | c31ge25j.com | www.364277.com | www.32czj.com | www.hg27388.com | www.j37.cc | www.50000955.co | www.553418.com | www.8494u.com | 88807m.com | 7720m.com | 809h39.com | 00w99.vip | 8898555.com | www.80075o.com | www.786819.com | www.9155b.com | www.55238d.com | www.89386c.com | www.59040.com | www.cx9871.com | www.js778911.com | www.benz4433s.com | 20770000.com | 55ee8332.com | du365.com | 3467n.com | 750.com | p7742.com | bx394.com | 8030h.com | 168cp-r.com | 58830.com | www.230961.com | www.596960.com | www.978257.com | www.3668aa.com | www.50080x.com | www.0270b.com | www.hb858.net | www.880478.com | www.8c000.com | www.656133.com | www.4996gs.com | www.bet91487.com | www.163a66.com | www.304015.me | www.bet421.com | www.260666.com | www.jing6444.com | www.lgf08.com | www.0040i.com | www.4242ff.com | www.7830q.com | www.87680t.com | www.p78888.com | www.1348-5.com | www.yyy7777.com | www.36536570.com | www.wan6668888.com | www.6491l.com | www.38200p.com | www.js69ll.cc | www.pj22886.com | www.6491w.com | www.689578.com | www.sjcp111.com | www.9068rr.com | www.09569o.com | www.pj5875.com | www.140999.com | www.600kk.com | www.js629.com | www.7335zz.com | www.77731z.com | www.86999.com | www.829797c.com | www.377666f.com | www.ag3388.com | www.0600p.cc | www.096968.com | www.9646i.com | www.52303q.com | www.3126a.com | www.936126.com | www.558363.com | www.106036.com | 30176699.com | www.587335.com | www.178795.com | sbd023.net | 3y4400.com | 38820055.com | 3950wcom | mgm20.vip | 3225a.com | www.3333jsc.com | www.hg2968.com | www.hg5123.pw | www.15457.com | www.854608.com | www.z063801.com | www.s98478.com | www.54400y.com | www.c3714.com | www.317787.com | p888go.com | 1591ooo.com | 4255ll.com | 88772007.com | www.81866j.com | www.995q.net | www.113470.com | www.4136e.com | www.7340333.com | www.39500h.com | www.763287.com | 89777s.com | 2477000.com | 3559dd.com | 2764.com | www.9068oo.com | www.dd65.com | www.4996dt.com | www.5958818.com | www.530 | www.308139.com | 500c.vip | 81366i.com | ok8381.com | www.pjhubei.com | www.257js.com | www.71071b.com | www.68993272.com | www.ya044.com | www.106036.com | ddh5152.com | 4995v.com | www.7009844.com | www.67843.com | www.38138e.com | www.455263.com | www.895544.com | 6647k.com | c99474.com | 3258y.com | www.55268zz.com | www.6001.com | www.zzyl64.com | www.hm2666.com | 22wb8.com | 55797p.com | zhcp57.com | www.1516yyy.com | www.0052737.com | www.87668b.com | www.433680.com | 3379yy.com | xuxrbmlu.cn | www.hg0096.com | www.55526m.com | www.xh289.com | www.858776.com | 35442000.com | nn40033.com | www.0011hg.com | www.147373.com | www.3775x.com | www.769301.com | c388o.com | 205500853.com | www.4625x.com | www.8313w.com | www.50080w.com | www.68568i.com | 58222kk.com | www.81866e.com | www.65579b.com | www.win1233.com | www.547077.com | 8722.com | 500000777.com | www.065666.com | www.pj9050.com | www.606297.com | 8881482.com | 56988i.com | www.5994.com | www.6939d.com | www.238500.com | 23233i.com | www.56733i.com | www.56655g.com | www.80065c.com | 0906vip2.com | tt40033.com | www.7025m.com | www.115527v.com | www.919586.com | 1665j.com | 3834504.com | www.751cp3.com | www.54400t.com | 500000379.com | t77304.com | www.58777e.com | www.32031c.com | www.564696.com | 69444488.com | www.tyc8808.com | www.huangma23.com | www.954689.com | amhg022.com | www.56733o.com | www.4694o.com | www.df79.com | 33599bb.com | www.517ly13.com | www.huayi388.com | www.905866.com | pj8114.com | www.as0099.com | www.q2894.com | www.370155.com | 23599k.com | www.yh22338.com | www.1466c.com | 8988n.com | pc5162.cn | www.46621.com | www.5091z.com | 2373r.com | www.799007.com | www.79095f.com | www.327831.com | 4036ll.com | www.03499.com | www.34788p.com | tt6825.com | www.jsw66.cc | www.115527f.com | www.297126.com | 4036d.com | www.suncity3.com | www.11774.cc | 1104016.com | www.p78888.com | www.4809p.com | jxf964.com | jinguan2255.com | www.55070n.com | www.383897.com | 8037t.com | www.hg039.com | www.09czj.com | 72vg.com | www.vns4668.cc | www.78700n.com | 444144.com | www.4625j.com | www.5337933.com | 3049k.com | www.6491m.com | www.xx888.cc | 2649jj.com | www.629554.com | www.pj55712.com | 5003qq.com | www.227vns.com | www.495.com | 63305v.com | www.pj9898.com | www.48330r.com | 22571333.com | www.xhtd2233.com | www.88325.com | i2554.com | www.655666c.com | www.00840v.com | www.5719a.com | 315965.com | www.xpj1111.cc | www.683158.com | 390390.com | www.566333.com | www.61655h.com | 38989j.com | www.hg5867.com | www.hr9888.com | nn40033.com | www.twcp00.com | www.233896.com | 7141yy.com | www.wns11.me | 91019v.net | www.58777x.com | www.6832n.com | 4508ll.com | www.542suncity.com | www.513550.com | 9435.cc | www.288582.com | stsvip9.com | www.009suncity.com | www.9818w.cc | 88993.com | www.4212n.com | 6hcc44.com | www.4759uu.com | www.xhg338.Com | 0033buyu.com | www.7335ss.com | www.233896.com | ms888.com | www.50811.com | 0234t.com | www.w4042.com | www.81520e.com | www.pj5908.com | www.66652d.com | 3559aaaa.com | www.59040.com | 5956988.com | www.2846n.com | www.hjin2.com | ylpp234.com | www.68365u.com | P36.com | www.449999.com | www.105636.com | www.8473d.com | www.6364g.com | youfa777.vip | www.588714.com | www.2373f.com | 8547bb.com | www.815818.com | xhtd1634.com | www.gdnmi.com | 44nn8332.com | www.912suncity.com | www.am8080.com | zhcp66.com | www.954321v.com | 3662l.com | www.yh67.net | 1591ooo.com | www.jgj230230.com | 61323388.com | www.xpj9780.com | www.rcw789.com | www.v0020.com |