- Tool: md5sum
Generate MD5 checksum
Generate a 10M file for test propose.
- # dd if=/dev/zero of=/tmp/test-10M bs=1048576 count=10
- 10+0 records in
- 10+0 records out
- 10485760 bytes (10.0MB) copied, 0.063248 seconds, 158.1MB/s
- # ls -la
- test-10m
Generate MD5checksum
- # cd /tmp
- # md5sum test-10M > test-10M.md5
- # ls -la
- test-10M
- test-10M.md5
- # cat test-10M.md5
- f1c9645dbc14efddc7d8a322685f26eb test-10M
Verify MD5 checksum
Copy test file (test-10m & test-10m.md5) to USB flash
- # mount -t vfat /dev/sda1 /usb
- # cp -rf test-10M test-10M.md5 /usb
- # ls -la /usb
- test-10M
- test-10M.md5
Verify test file in MD5checksum
- # cd /usb
- # md5sum -c test-10m.md5
- test-10M: OK
沒有留言:
張貼留言