Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Use the cksum command of linux to verify the file

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail about the use of linux cksum command check file, Xiaobian think quite practical, so share to everyone for a reference, I hope you can read this article after harvest.

The cksum command is used to check whether the CRC of a file is correct, ensuring that the file is correct during transfer from one system to another. Cyclic Redundancy Check (CRC) is an error-checking method specified by CCITT that detects at least 99.998% of known errors.

This method requires checksums to be calculated separately in the source and destination systems, then compared, and if the checksums are equal, the file is considered to have been transmitted correctly. If no file name is specified or if the file name given is "-", the command "cksum" reads data from standard input devices.

Syntax format: cksum [parameter] [file]

Common parameters:

--help Online Help--version Show version information

Reference Example

Calculate the integrity of the file "tempfile":

[root@linuxcool ~]# cksum tempfile

4294967295 0 tempfile

Note: "4294967295" indicates check code,"0" indicates byte number.

On the use of linux cksum command check file to share here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report