ubuntu:openssl:compute_a_checksum_of_a_file
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:openssl:compute_a_checksum_of_a_file [2021/01/29 14:43] – peter | ubuntu:openssl:compute_a_checksum_of_a_file [2021/01/29 15:53] (current) – [Compute an MD5 Checksum for all files in a directory] peter | ||
---|---|---|---|
Line 55: | Line 55: | ||
---- | ---- | ||
+ | |||
+ | ===== Compute an MD5 Checksum for all files in a directory ===== | ||
+ | |||
+ | OpenSSL can also be combined with find to produce fingerprints for several files: | ||
+ | |||
+ | <code bash> | ||
+ | find /home/peter -type f -print0 | xargs -0 openssl md5 | ||
+ | |||
+ | or | ||
+ | |||
+ | find /home/peter -type f| xargs -d ' | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | To accommodate for files which may contain spaces, the **-d** option is used to limit xarg delimiters to only the new line characters (' | ||
+ | </ | ||
ubuntu/openssl/compute_a_checksum_of_a_file.1611931419.txt.gz · Last modified: 2021/01/29 14:43 by peter