md5sum is a shell command in Linux/Unix. It can be used for file verification. For example, if two files are the same, the following small series will introduce you how Linux/Unix compares two files using md5sum.
Recommended: Ubuntu gnome 32-bit Standard Edition Download
1. Introduction
The MD5 algorithm is often used to verify the integrity of network file transfers and prevent files from being tampered with. The MD5 full name is the Message-Digest Algorithm 5, which calculates the information of any length bit by bit, and produces a fingerprint with a length of 128 bits (the length of the hexadecimal is 32 bits). (Or called "message digest", the possibility that different files produce the same message digest is very, very small.
On Linux or Unix, md5sum is a utility for calculating and verifying file message digests. In general, after installing Linux, there will be a tool called md5sum, which runs directly on the command line terminal.
2, command format
md5sum [OPTION]. . . [FILE]. . .
3, command options
-b or --binary: treat the input file as a binary file.
-t or --text : treat the input file as a text file (default).
-c or --check : Used to read the md5 information from the file to check the consistency of the file. (Don't elaborate on info)
--status: This option is used with check. When checking, it does not output, but indicates the result based on the return value.
-w or --warn : In the check, check the input md5 information and there is no illegal line, if there is, output the corresponding information.
4, an example
(1) md5 producing a value document, as shown
(2) Check whether the file is the same as FIG two, by Compare the md5 values of the two files.
(3) determines whether a file modification, is determined by md5
The above is a Linux /Unix used to compare two files md5sum whether the same manner as described herein This example is used to illustrate the use of the md5sum command, which can also be used to create md5 code.
The Linux system disk prompt is full, but the size of the files in the disk is inco
When virtualizing in Linux system virtual machine, you can choose two formats. Raw and qcow2 can be
Many Linux users dont know that the shell can not only edit the script, but also ca
vim is an excellent system text editor, commonly used in Linux systems, using vim t
Ubuntu 12.04 install Gnome Shell extension method
How to use the Linux system swap and zram swap?
Linux installation and configuration of rsync and sersync methods
How to solve Ubuntu 12.04 boot error Checking Battery State problem
Linux system NBMA and BMA exchange method introduction
How does Ubuntu set up a shortcut to start a program?
Linux system grep command operation example summary
How to undo operations in Git in Linux
What if the CentOS 5.5 system does not recognize the Atheros AR8151 NIC?
How to install and configure Vim IDE for Linux systems
Usage of the Linux tail command
How to view information about Linux loading built-in modules
Win10 system comes with the use of virtual optical drive features
How to set or change the email notification sound of the XP system
Various sleep modes of Windows 7
Steps to turn off visual effects for Windows 8.1 system
Windows Tips: The Administrator account is set up with you
What is the failure of Dongdong Mobile Assistant installation? Engine installation failure solution
Replacing the motherboard does not require reinstalling the XP system
Security First, the importance and application of mail server SPF