Creating a shell script to traverse a file system and hash every file -
i need create shell script traverse entire file system, hash each file, , write text database.
i doing on ubuntu 12.04 , using md5sum and, if being honest here, don't know begin. , appreciated!
this may take time compute:
find / -type f -exec md5sum {} + >my_database.md5 how works
findfindutility can traverse entire filesystems/this tells
findstart @ root of filesystem.-type fthis tells
findfind regular files-exec md5sum {} +this tells
findrunmd5sumon each of files found.>my_database.md5this tells shell redirect output command file.
Comments
Post a Comment