The use of MD5SUM commands under Linux __linux

Source: Internet
Author: User
Tags md5

md5sum is the command used to compute and verify the MD5 value of a file (the MD5 full name is an algorithm for digest (Message-digest algorithm 5)). It is quite convenient to use, when we download some files from the network, especially the system mirrors are generally followed by the file's MD5 value, you can use this command to verify the integrity of the file.

1. Calculate the MD5 value of a file

md5sum filename > Filename.md5

View the Filename.md5 file in the form of a 32-digit hexadecimal number with two spaces in the middle, followed by the filename

2. Verify the MD5 value of a file

Md5sum-c FILENAME.MD5

This ensures that the filename file and the Filename.md5 file are in the same directory, and if correct, the correct two words will be output.

3. View the MD5 value of a string

echo "123456" | 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.