Hashdeep: diferència entre les revisions

De WikiMar
Salta a la navegació Salta a la cerca
mCap resum de modificació
Línia 4: Línia 4:


  cd folder1
  cd folder1
  hashdeep -e -l -r . > hashdeep_$(date +%y%m%d).txt
  hashdeep -r -l . > hashdeep_$(date +%y%m%d).txt


* -r Recursive mode
* -r Recursive mode
* -e Estimate time (opcional)
* -l relative file paths
* -l relative file paths
* -e Estimate time (optional)


To get a deterministic order, use -j0 which disables multithreading (see the man page)
To get a deterministic order, use -j0 which disables multithreading (see the man page)
Línia 16: Línia 16:
===List new files or changed===
===List new files or changed===
  cd folder2
  cd folder2
  hashdeep -r -X -v -k hashdeep_$(date +%y%m%d).txt .
  hashdeep -r -l -X -v -k hashdeep_$(date +%y%m%d).txt .


* -r Recursive mode
* -r Recursive mode
* -l relative file paths
* -X Display each failed hash that does not match the list of known hashes
* -X Display each failed hash that does not match the list of known hashes
* -v Verbose mode
* -v Verbose mode
Línia 29: Línia 30:
===List how the files have been moved, new files and changed===
===List how the files have been moved, new files and changed===
  cd folder2
  cd folder2
  hashdeep -r -avv -k hashdeep_$(date +%y%m%d).txt .
  hashdeep -r -l -avv -k hashdeep_$(date +%y%m%d).txt .


* -a audit mode
* -a audit mode
* -v Verbose mode
* -vv More verbose mode





Revisió del 17:32, 16 gen 2016


Create hash file

cd folder1
hashdeep -r -l . > hashdeep_$(date +%y%m%d).txt
  • -r Recursive mode
  • -l relative file paths
  • -e Estimate time (optional)

To get a deterministic order, use -j0 which disables multithreading (see the man page)

Verify hash on the same or another folder

List new files or changed

cd folder2
hashdeep -r -l -X -v -k hashdeep_$(date +%y%m%d).txt .
  • -r Recursive mode
  • -l relative file paths
  • -X Display each failed hash that does not match the list of known hashes
  • -v Verbose mode
  • -k Load list of known hashes
  • hashdeep.txt File containing hashes
  • dir Name of the directory in question


List how the files have been moved, new files and changed

cd folder2
hashdeep -r -l -avv -k hashdeep_$(date +%y%m%d).txt .
  • -a audit mode
  • -vv More verbose mode


MAN: http://md5deep.sourceforge.net/hashdeep.html More info: https://linhost.info/2010/05/using-hashdeep-to-ensure-data-integrity/