<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>binary &#8211; richliu&#039;s blog</title>
	<atom:link href="https://blog.richliu.com/tag/binary/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Wed, 03 Feb 2010 08:33:45 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>[Linux] binary file compare</title>
		<link>https://blog.richliu.com/2009/02/24/738/binary-file-compare/</link>
					<comments>https://blog.richliu.com/2009/02/24/738/binary-file-compare/#comments</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Tue, 24 Feb 2009 08:02:57 +0000</pubDate>
				<category><![CDATA[UNIX]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[cmp]]></category>
		<category><![CDATA[compare]]></category>
		<category><![CDATA[dhex]]></category>
		<category><![CDATA[diff]]></category>
		<category><![CDATA[hexdump]]></category>
		<category><![CDATA[hexedit]]></category>
		<category><![CDATA[vbindiff]]></category>
		<category><![CDATA[vim]]></category>
		<guid isPermaLink="false">http://blog.richliu.com/?p=738</guid>

					<description><![CDATA[<p>Linux 下 binary 相關的工具如下.. hexdump: 將 hex 值dump 出來 最快的比較方 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2009/02/24/738/binary-file-compare/">[Linux] binary file compare</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Linux 下 binary 相關的工具如下..</p>
<h3>hexdump:</h3>
<p>將 hex 值dump 出來</p>
<p>最快的比較方式就是, hexdump file 輸出到文字檔之後, 再比較</p>
<h3>hexedit:</h3>
<p>修改 binary file.</p>
<p>常用指令</p>
<p>F2: Save<br />
Ctrl + &gt; 到檔案最尾端<br />
Ctrl + s : Search, 找 binary  string , ex: &#8220;aabbccddee&#8221;</p>
<h3>Ctrl + x : Save and Exit</h3>
<h3>vbindiff</h3>
<p>視窗型的 binary diff 工具</p>
<h3><a href="http://freshmeat.net/projects/dhex/" target="_blank" rel="noopener">dhex</a></h3>
<p>同上, 不過 ubuntu 應該沒有收錄</p>
<h3>cmp</h3>
<p>$ cmp file1 file2 -l</p>
<p>這樣會列出兩個 binary file 的差異處.</p>
<h3>vim</h3>
<p>用 vimdiff 之後<br />
再下command (兩邊的視窗都要下)<br />
:%!xxd<br />
就解決了.</p>
<p>vim 的介面算很親切的.</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2009/02/24/738/binary-file-compare/">[Linux] binary file compare</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2009/02/24/738/binary-file-compare/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
