Calculate md5 checksum of the list of all files/dirs in /path recursively including dot files and excluding the patterns 'run', 'sys', 'tmp' and 'proc', then check the checksum against the checksum saved in /tmp/file
ls -alR -I dev -I run -I sys -I tmp -I proc /path | md5sum -c /tmp/file