查看哈希值命令
Linux : md5sum + 文件名
$ md5sum 1.png fe5c3f5ef1d207bc1b646911b463c907 1.png
Windows : certutil -hashfile 文件名 MD5
> certutil.exe -hashfile 1.png MD5 MD5 的 1.png 哈希: 332c21600730b5b02a160e1d287118ce CertUtil: -hashfile 命令成功完成。
創建一個空文本
> echo "123" > abc.txt
合並
Linux
$ cat 1.png abc.txt > 2.png
Windows (請使用windows自帶終端,比如 cmd)
> type 1.png abc.txt > 3.png
此時再查看文件的hash值,應該已經改變了。這里以圖片為例,其他文件同理。