In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "the usage of linux basic commands sum and cksum". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "the usage of linux basic commands sum and cksum".
Sum
BSD and system V algorithms can be used to calculate the check code and block number of files. If no file is specified, or if the file name is "-", then the file is standard input.
The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.
1. Grammar
Sum [options] file
2. List of options
Option
Description
-- version
Display version information
-- help
Show help documentation
-r
Use the system v algorithm, using 1k bytes.
S
Using the BSD algorithm, using 512 bytes
3. Examples
1) BSD algorithm
[root@192 weijie] # sum-r 1.c
/ / check the number of blocks
35112 1
2) systemV algorithm
[root@192 weijie] # sum-s 1.c
/ / check the number of blocks file name
543 1 1.c
Cksum
Check whether the crc of the file is correct and count the number of bytes of the file. The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.
1. Grammar
Cksum [options] file
2. List of options
Option
Description
-- help
Show help documentation
-- version
Display version information
3. Examples
Detection file
[root@192 weijie] # cksum 1.c
/ / crc check byte file name
4188905735 12 1.c
Thank you for your reading. the above is the content of "the usage of linux basic commands sum and cksum". After the study of this article, I believe you have a deeper understanding of the usage of linux basic commands sum and cksum, and the specific usage needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.