Sample Header Ad - 728x90

Get hash from file while you copy or move it

0 votes
1 answer
1063 views
Say I copy a file with pv, is there any way to also get any hash, like md5, sha1, etc without having to read origin twice? It has to work with big files or block devices. Example command which does not work as expected: pv /dev/sda1 | tee md5sum > /mnt/backups/sda.backup
Asked by Smeterlink (295 rep)
Dec 14, 2021, 12:09 PM
Last activity: Dec 14, 2021, 04:44 PM