2020-10-05 15:28:31 +01:00
|
|
|
# md5sum
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 计算 MD5 加密校验和。
|
2021-08-31 08:13:49 +01:00
|
|
|
> 更多信息:<https://www.gnu.org/software/coreutils/md5sum>.
|
2020-10-05 15:28:31 +01:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 计算文件的 MD5 校验和:
|
2020-10-05 15:28:31 +01:00
|
|
|
|
2021-09-03 20:36:19 +01:00
|
|
|
`md5sum {{path/to/file}}`
|
2020-10-05 15:28:31 +01:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 计算多个文件的 MD5 校验和:
|
2020-10-05 15:28:31 +01:00
|
|
|
|
2021-09-03 20:36:19 +01:00
|
|
|
`md5sum {{path/to/file1}} {{path/to/file2}}`
|
2020-10-05 15:28:31 +01:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 读取 MD5SUM 的文件并验证所有文件是否具有匹配的校验和:
|
2020-10-05 15:28:31 +01:00
|
|
|
|
2021-09-03 20:36:19 +01:00
|
|
|
`md5sum -c {{path/to/file.md5}}`
|