Skip to content

Instantly share code, notes, and snippets.

@hoangdh
Last active December 18, 2018 06:50
Show Gist options
  • Save hoangdh/509bcd54b5b4b0a341b3818dc5c4d878 to your computer and use it in GitHub Desktop.
Save hoangdh/509bcd54b5b4b0a341b3818dc5c4d878 to your computer and use it in GitHub Desktop.
How to change MD5 of file using Linux command

How to change MD5 of file using Linux command

Either command should add 10 bytes to the end of your file. This should mean the MD5 (when next calculated) should be different.

truncate -s +10 <filename>.ext
dd if=/dev/zero bs=1 count=10 >> <yourfile>.<ext>

Reference:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment