To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

From Wikipedia, the free encyclopedia

cksum
Operating systemUnix, Unix-like
PlatformCross-platform
TypeCommand

cksum is a command in Unix and 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 input if no arguments are provided, and outputs the file's 32-bit cyclic redundancy check (CRC) checksum and byte count.[1] The CRC output by cksum is different from the CRC-32 used in zip, PNG and zlib.[2]

The cksum command can be used to verify that files transferred by unreliable means arrived intact.[1] However, the CRC checksum calculated by the cksum command is not 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.

The command is available as a separate package for Microsoft Windows as part of the UnxUtils collection of native Win32 ports of common GNU Unix-like utilities.[3]

Latest GNU Coreutils cksum provides additional checksum algorithms via -a option, as an extension beyond POSIX.[1]

YouTube Encyclopedic

  • 1/3
    Views:
    224 887
    315
    119 330
  • Checksum
  • How to use the command cksum in Linux?
  • Linux Tutorial for Beginners - 9 - Verify Files Using Checksum

Transcription

Interoperability

The standard cksum command, as found on most Unix and Unix-like operating systems (including Linux, *BSD,[4][5][6] macOS, and Solaris[7]) uses a CRC algorithm based on the ethernet standard frame check[8] and is therefore interoperable between implementations. This is in contrast to the sum command, which is not as interoperable and not compatible with the CRC-32 calculation. On Tru64 operating systems, the cksum command returns a different CRC value, unless the environment variable CMD_ENV is set to xpg4.[citation needed]

Algorithm

cksum uses the generator polynomial 0x04C11DB7 and appends to the message its length in little endian representation. That length has null bytes trimmed on the right end.[8]

Syntax

cksum [FILE]...
cksum [OPTION]

Usage example

$ cksum test.txt
4038471504 75 test.txt

where 4038471504 represents the checksum value and 75 represents the file size of test.txt.

See also

References

  1. ^ a b c "cksum: Print CRC checksum and byte counts". gnu.org. Retrieved 2015-07-05.
  2. ^ "Catalogue of parametrised CRC algorithms". reveng.sourceforge.io.
  3. ^ "Native Win32 ports of some GNU utilities". unxutils.sourceforge.net.
  4. ^ "cksum(1)". www.freebsd.org. April 28, 1995. Retrieved 2023-01-07.
  5. ^ "cksum(1) - NetBSD Manual Pages". man.netbsd.org. December 14, 2019. Retrieved 2023-01-07.
  6. ^ "cksum(1) - OpenBSD manual pages". man.openbsd.org. August 4, 2022. Retrieved 2023-01-07.
  7. ^ "cksum - man pages section 1: User Commands". docs.oracle.com. Retrieved 2023-01-07.
  8. ^ a b "cksum". pubs.opengroup.org.

External links

This page was last edited on 26 February 2024, at 00:16
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.