window.ENTITIES={'/api/snippets/bash/bash%20-%20calculate%20md5%20sum%20of%20entire%20directory':[{"result":true,"message":null,"batch":{"type":"bash","name":"bash - calculate md5 sum of entire directory","items":[{"id":"DZNzbD","type":"bash","name":"Bash - calculate MD5 sum of entire directory","content":"# ⚠️ WARNING ⚠️: do not change `.` path in the used `find` commands.\n\n\ncd /path/to/directory && ( find . -type d | LC_ALL=C sort; find . -type f -exec md5sum {} + | LC_ALL=C sort -k 2 ) | md5sum; cd - > /dev/null\n\n\n# Where: the command:\n# - finds all directories located under /path/to/directory location,\n# - finds all regular files located under /path/to/directory location and computes MD5 sums for them,\n# - computes and prints final MD5 sum for directories and regular files\n\n\n# Example output:\n#\n# 912cb5810f4cf3555478715bc9a2e6c0 -","source":"","author":{"id":"Ro42dD","name":"Creg","avatar":"1667335677213__Ro42dD__w40px_h40px.jpg","points":9600,"role":"ADMIN"},"creationTime":1740737616000,"updateTime":1740741655000,"removalTime":null}]}}]};