The Joy of Linux commands--md5sum

Source: Internet
Author: User

The md5sum command is used to generate and verify the MD5 value of the file. It verifies the contents of the file bit by bits, and it is commonly used with checking the integrity of the file.

Read the MD5 value of the file

[Email protected] ~]# md5sum/usr/local/sbin/*  >>file.md5[[email protected] ~]# cat FILE.MD5 74fd7e1f2730b5f8353d7a5f417747ef  /usr/local/sbin/demo.sh8bd8f8743b02a33882bca8fcb2234261  /usr/local/ SBIN/ARRAY.SHD7E30C2D897F0FDD9B157E9A5E9FBFBC  /usr/local/sbin/debug.sh

Check that the file is complete

[Email protected] ~]# md5sum-/usr/local/sbin/array.sh:OK/usr/local/sbin/Debug.sh:OK/ Usr/local/sbin/demo.sh:ok
[[email protected] ~]# echo $?
0

Test change a file

[Email protected] ~]# md5sum-/usr/local/sbin/array.sh:OK/usr/local/sbin/Debug.sh:OK/ usr/local/sbin/13~]# echo $? 1

The Joy of Linux commands--md5sum

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.