Use of md5sum in linux

Source: Internet
Author: User
Tags md5 digest

The MD5 algorithm is often used to verify the integrity of network file transmission and prevent file tampering. MD5
Message Digest Algorithm (Message-Digest Algorithm)
5), this algorithm computes information of any length by bit, and generates a binary length of 128 bits (The hexadecimal length is 32 bits) "fingerprint" (or "Message Digest") of, different files are generated
The possibility of the same message digest is very small.
In linux or Unix, md5sum is a tool program used to calculate and verify the file message digest. Generally, after Linux is installed, the md5sum tool runs directly on the command line terminal.
1. Run the following command to generate a fingerprint (packet Digest) using md5sum:
 
Md5sum file> file. md5
 
Or
Md5sum file> file. md5
You can also output the message digest of multiple files to an md5 file. The wildcard * is used. For example, there are several iso files in a directory, output the abstract of these iso files to iso. in the md5 file, the command is as follows:
 
Md5sum *. iso> iso. md5
2. Use the md5 message digest to verify the file. There are two methods:
Put the downloaded file and the file. md5 Digest file of the file in the same directory, and then run the following command for verification:
Md5sum-c file. md5
Then, if the verification is successful, the output is correct.
 
 
 
Md5sum passwd. bak/etc/passwd

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.