Я не хотел новых исполняемых файлов, ни Clunky Solutions, поэтому вот мой взять:
#!/bin/sh
# md5dir.sh by Camilo Martin, 2014-10-01.
# Give this a parameter and it will calculate an md5 of the directory's contents.
# It only takes into account file contents and paths relative to the directory's root.
# This means that two dirs with different names and locations can hash equally.
if [[ ! -d "$1" ]]; then
echo "Usage: md5dir.sh <dir_name>"
exit
fi
d="$(tr '\\' / <<< "$1" | tr -s / | sed 's-/$--')"
c=$((${#d} + 35))
find "$d" -type f -exec md5sum {} \; | cut -c 1-33,$c- | sort | md5sum | cut -c 1-32
На официальном сайте Virtual Box появился запрос о возможностях. Вы можете следить за обсуждением там и узнать, когда она будет (или будет ли) включена.
Я где-то читал, что vmware, workstation 8 включает эту функцию, но я не проверял и не тестировал ее.