比較兩資料夾的binary file - Linux

By Oscar
at 2015-03-02T22:25
at 2015-03-02T22:25
Table of Contents
我用diff比較兩張一樣的圖檔
但是檔名不一樣
diff jpg1 jpg2
以上指令結果合乎預期
沒有任何output
但是當我把他們分別放至不同的directory
再用
diff dir1 dir2
結果
Only in dir1:jpg1
Only in dir2:jpg2
很顯然的
作用在directory上時
diff只會比較檔名
請問該怎麼比較兩資料夾裡的檔案「內容」
而不是檔名
感謝
--
但是檔名不一樣
diff jpg1 jpg2
以上指令結果合乎預期
沒有任何output
但是當我把他們分別放至不同的directory
再用
diff dir1 dir2
結果
Only in dir1:jpg1
Only in dir2:jpg2
很顯然的
作用在directory上時
diff只會比較檔名
請問該怎麼比較兩資料夾裡的檔案「內容」
而不是檔名
感謝
--
Tags:
Linux
All Comments

By Mason
at 2015-03-07T18:01
at 2015-03-07T18:01

By Candice
at 2015-03-12T03:04
at 2015-03-12T03:04

By Rae
at 2015-03-13T00:20
at 2015-03-13T00:20

By William
at 2015-03-15T11:07
at 2015-03-15T11:07

By Suhail Hany
at 2015-03-17T02:30
at 2015-03-17T02:30

By Lily
at 2015-03-20T20:29
at 2015-03-20T20:29

By Lydia
at 2015-03-24T08:29
at 2015-03-24T08:29
Related Posts
Debian不啟動xwindow

By Skylar Davis
at 2015-03-02T17:25
at 2015-03-02T17:25
網站的問題

By Agnes
at 2015-03-02T13:47
at 2015-03-02T13:47
磁碟分割大小,及需要將所有空間切完嗎?

By Daph Bay
at 2015-02-28T06:42
at 2015-02-28T06:42
Debian開機直接當機

By Victoria
at 2015-02-27T19:52
at 2015-02-27T19:52
[問題] screen的問題

By Dorothy
at 2015-02-27T12:19
at 2015-02-27T12:19