Pomoc Md5 dla scieżki rekursywnie

badziewiak

Enterprise Admin...
Q's Architect
3 Marzec 2015
778
165
43
49
Gliwice
QNAP
TVS-871
Ethernet
1 GbE
Znalazłem:
Kod:
ipkg install findutils
Kod:
/opt/bin/find sciezka  -type f -exec md5sum {} \; >file.md5.txt
Teraz szukam jak jeszcze zweryfikować te sumy.
 
Ale chwila... To podaje mi md5 całego katalogu? Bardziej chodzi mi o weryfikację poszczególnych plików. Jeśli coś jest nie tak, żeby wywalił ścieżkę który to plik.
 
Zaraz, a nie prościej:
ipkg install md5deep
Kod:
[~] # md5deep -hh
md5deep version 4.3 by Jesse Kornblum and Simson Garfinkel.
$ md5deep [OPTION]... [FILES]...
See the man page or README.txt file or use -hh for the full list of options
-p <size> - piecewise mode. Files are broken into blocks for hashing
-r        - recursive mode. All subdirectories are traversed
-e        - show estimated time remaining for each file
-s        - silent mode. Suppress all error messages
-z        - display file size before hash
-m <file> - enables matching mode. See README/man page
-x <file> - enables negative matching mode. See README/man page
-M and -X are the same as -m and -x but also print hashes of each file
-w        - displays which known file generated a match
-n        - displays known hashes that did not match any input files
-a and -A add a single hash to the positive or negative matching set
-b        - prints only the bare name of files; all path information is omitted
-l        - print relative paths for filenames
-t        - print GMT timestamp (ctime)
-i/I <size> - only process files smaller/larger than SIZE
-v        - display version number and exit
-d        - output in DFXML; -u - Escape Unicode; -W FILE - write to FILE.
-j <num>  - use num threads (default 4)
-Z - triage mode;   -h - help;   -hh - full help
-S        - Silent mode, but warn on bad hashes
-0        - use a NUL (\0) for newline.
-k        - print asterisk before filename
-u        - escape Unicode characters in filenames
-B        - verbose mode; repeat for more verbosity
-C        - OS X only --- use Common Crypto hash functions
-Fb       - I/O mode buffered; -Fu unbuffered; -Fm memory-mapped
-f <file> - take list of files to hash from filename
-o[bcpflsde] - expert mode. Only process certain types of files:
               b=block dev; c=character dev; p=named pipe
               f=regular file; l=symlink; s=socket; d=door e=Windows PE
-D <num>  - set debug level to nn