<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=Cksum</id>
	<title>Cksum - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://en.zaoniao.it/index.php?action=history&amp;feed=atom&amp;title=Cksum"/>
	<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Cksum&amp;action=history"/>
	<updated>2026-05-15T15:19:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.32.0</generator>
	<entry>
		<id>http://en.zaoniao.it/index.php?title=Cksum&amp;diff=2357&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;'''cksum''' is a command in Unix-like operating systems that generates a checksum value for a file or stream of data. The cksum command reads e...&quot;</title>
		<link rel="alternate" type="text/html" href="http://en.zaoniao.it/index.php?title=Cksum&amp;diff=2357&amp;oldid=prev"/>
		<updated>2019-03-20T04:20:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;cksum&amp;#039;&amp;#039;&amp;#039; is a &lt;a href=&quot;/index.php?title=Command_(computing)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Command (computing) (page does not exist)&quot;&gt;command&lt;/a&gt; in &lt;a href=&quot;/index.php?title=Unix-like&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Unix-like (page does not exist)&quot;&gt;Unix-like&lt;/a&gt; operating systems that generates a &lt;a href=&quot;/Checksum&quot; title=&quot;Checksum&quot;&gt;checksum&lt;/a&gt; value for a file or stream of data. The cksum command reads e...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''cksum''' is a [[command (computing)|command]] in [[Unix-like]] operating systems that generates a [[checksum]] value for a file or stream of data. The cksum command reads each file given in its arguments, or [[Standard streams|standard input]] if no arguments are provided, and outputs the file's [[cyclic redundancy check|CRC]] checksum and [[byte]] count.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;cksum&amp;lt;/tt&amp;gt; command can be used to verify that files transferred by unreliable means arrived intact. However, the CRC checksum calculated by the cksum command is not [[Cryptographic hash function|cryptographically secure]]: While it guards against ''accidental'' corruption (it is unlikely that the corrupted data will have the same checksum as the intended data), it is not difficult for an attacker to ''deliberately'' corrupt the file in a specific way that its checksum is unchanged. Unix-like systems typically include other commands for cryptographically secure checksums, such as [[sha256sum]].&lt;br /&gt;
&lt;br /&gt;
== Interoperability ==&lt;br /&gt;
&lt;br /&gt;
The standard &amp;lt;tt&amp;gt;cksum&amp;lt;/tt&amp;gt; command, as found on most UNIX-like operating systems (including GNU/Linux, *BSD, Mac OS X, and Solaris) uses a CRC algorithm based on the [[Frame check sequence|ethernet standard frame check]] and is therefore interoperable between implementations. This is in contrast to the [[Sum (Unix)|sum command]], which is not as interoperable. It is however not compatible with the CRC-32 calculation. On [[Tru64]] operating systems, the &amp;lt;tt&amp;gt;cksum&amp;lt;/tt&amp;gt; command returns a different CRC value, unless the [[environment variable]] &amp;lt;code&amp;gt;CMD_ENV&amp;lt;/code&amp;gt; is set to &amp;lt;code&amp;gt;xpg4&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Algorithm ==&lt;br /&gt;
cksum uses the [[generator polynomial]] 0x04C11DB7 and appends to the message its length in [[little endian]] representation. That length has [[null byte]]s trimmed on the right end.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
cksum [FILE]...&lt;br /&gt;
cksum [OPTION]&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Usage example==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;console&amp;quot;&amp;gt;&lt;br /&gt;
$ cksum test.txt&lt;br /&gt;
4038471504 75 test.txt&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;code&amp;gt;4038471504&amp;lt;/code&amp;gt; represents the checksum value and &amp;lt;code&amp;gt;75&amp;lt;/code&amp;gt; represents the file size of &amp;lt;code&amp;gt;test.txt&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Cyclic redundancy check]]&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
[http://wikipedia.org/ http://wikipedia.org/]&lt;br /&gt;
&lt;br /&gt;
[[Category:Cryptography]]&lt;br /&gt;
[[Category:Checksum algorithms]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>