Skip to content

Instantly share code, notes, and snippets.

@kangmasjuqi
Last active September 19, 2018 09:24
Show Gist options
  • Save kangmasjuqi/0940b060f953f12a19c3a7a47574b076 to your computer and use it in GitHub Desktop.
Save kangmasjuqi/0940b060f953f12a19c3a7a47574b076 to your computer and use it in GitHub Desktop.
working with MD5SUM
# find all files under current active directory
find -type f
# generate MD5SUM hash of all files under current active directory and store in file MDSUM.txt
find -type f | xargs -I{} md5sum {} > MD5SUM.txt
# validate the content of file MD5SUM.txt (files and their MD5SUM hash)
md5sum -c MD5SUM.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment