md5sum
file managementLinux/Unix
The md5sum command is one of the most frequently used commands in Linux/Unix-like operating systems. md5sum Compute and check MD5 message digest
Quick Reference
Command Name:
md5sum
Category:
file management
Platform:
Linux/Unix
Basic Usage:
md5sum [options] [arguments]
Common Use Cases
Syntax
md5sum [OPTION]... [FILE]...
Options
Option | Description |
---|---|
-b, --binary |
Read in binary mode (default on non-text systems) |
-c, --check |
Read MD5 sums from the FILEs and check them |
-t, --text |
Read in text mode (default on text systems) |
--quiet |
Don't print OK for each successfully verified file |
--status |
Don't output anything, status code shows success |
--strict |
Exit non-zero for improperly formatted checksum lines |
-w, --warn |
Warn about improperly formatted checksum lines |
--help |
Display help information and exit |
--version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the md5sum
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
md5sum file.txt