If you have a huge many files that want to calculate MD5,
you will need mmd5sum
. mmd5sum
calculate a directory
of files (can have sub-directories) using multiple processes.
pip install mmd5sum
- can specify a directory (can have sub-directories)
- can read calculated results to avoid recalculating
- can specify how many processes to use
- default using local machine command
md5sum
, but can specify another one
mmd5sum -d /path/to/directory -o md5.txt
If you have a file that some file already calculated:
mmd5sum -d /path/to/to/directory -i old_md5.txt -o new_md5.txt
If you want faster:
mmd5sum -d /path/to/directory -o md5.txt -p 10
-p 10
means you will have 10 processes in parallel, default is 4.
mmd5sum
default use md5sum
command to calculate MD5,
if the command calculate MD5 on you machine isn't md5sum
:
mmd5sum -d /path/to/directory -o md5.txt -m md5
-m md5
means the command on your machine is md5
。