Cksum

Cksum

cksum is a POSIX command that reads the files specified by the File parameter and calculates a checksum, cyclic redundancy check (CRC) and the byte count for a file or files. If no files are specified, the cksum command reads standard input. The checksum, number of bytes, and file name are written to standard output.

The cksum command can be used to compare a suspect file copied or communicated over noisy transmission lines against an exact copy of a trusted file. The comparison made by the cksum command may not be cryptographically secure. However, it is unlikely that an accidentally damaged file will produce the same checksum as the original file.

The standard cksum command, as found on most UNIX and UNIX-like OS (including GNU/Linux, *BSD, Mac OS X, Solaris) uses a CRC algorithm based on the ethernet standard frame check and is therefore interoperable between implementations. The cksum command on Tru64 returns a different CRC value, unless the environment variable CMD_ENV is set to "xpg4".

Syntax

cksum [ File ... ]

See also

*GNU Core Utilities
*md5sum
*sha1sum


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • 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 each file given in its arguments, or standard input if no arguments are provided, and outputs the file s CRC… …   Wikipedia

  • Cksum — рассчитывает количество байт и контрольную сумму (CRC) в файле по стандарту ISO/IEC 8802 3:1989. Алгоритм описан в справочной странице man. См. также md5sum sha1sum Ссылки cksum(1)   страница справки man по пользовательским командам… …   Википедия

  • cksum — рассчитывает количество байт и контрольную сумму (CRC) в файле по стандарту ISO/IEC 8802 3:1989. Алгоритм описан в справочной странице man. См. также md5sum sha1sum Ссылки cksum(1)   страница справки man по пользовательским командам… …   Википедия

  • Cksum — es una instrucción unix que calcula el código de comprobación de CRC de uno o varios ficheros. cksum muestra por la salida estándar el código de comprobación CRC, el tamaño del fichero y el nombre. Si no tiene argumentos, lee un fichero de la… …   Wikipedia Español

  • Cksum — es una instrucción unix que calcula el código de comprobación CRC de uno o varios ficheros. cksum muestra por la salida estándar el código de comprobación CRC, el tamaño del fichero y el nombre. Si no tiene argumentos, lee un fichero de la… …   Enciclopedia Universal

  • Comparison of file verification software — The following tables compare file verification software that typically use checksums to confirm the integrity or authenticity of a file. Contents 1 General 2 Program hash function support 3 Program features 4 …   Wikipedia

  • Программы UNIX-подобных операционных систем — Это список популярных программ, работающих в операционных системах основанных на UNIX (POSIX совместимых). Некоторые из этих программ являются стандартными для UNIX подобных систем. Содержание 1 Системный софт 1.1 Общего назначения …   Википедия

  • GNU Coreutils — GNU Core Utilities Тип Miscellaneous Utilities Разработчик GNU Project Написана на C Операционная система Unix подобные ОС Последняя версия 8.20 (23 октября 2012) …   Википедия

  • Checksum — Effect of a typical checksum function (the Unix cksum utility). A checksum or hash sum is a fixed size datum computed from an arbitrary block of digital data for the purpose of detecting accidental errors that may have been introduced during its… …   Wikipedia

  • Cyclic redundancy check — A cyclic redundancy check (CRC) is an error detecting code designed to detect accidental changes to raw computer data, and is commonly used in digital networks and storage devices such as hard disk drives. Blocks of data entering these systems… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”