User Tools

Site Tools


ubuntu:openssl:compute_a_checksum_of_a_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:openssl:compute_a_checksum_of_a_file [2021/01/29 14:43] peterubuntu: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 '\n' openssl md5
 +</code>
 +
 +<WRAP info>
 +**NOTE:**  The xargs command takes white space characters (tabs, spaces, new lines) as delimiters.
 +
 +To accommodate for files which may contain spaces, the **-d** option is used to limit xarg delimiters to only the new line characters ('\n').
 +</WRAP>
  
ubuntu/openssl/compute_a_checksum_of_a_file.1611931419.txt.gz · Last modified: 2021/01/29 14:43 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki