Using sha256sum command in Linux you can check SHA 256 Bit Checksum. Below are the steps.
- Suppose you have setup.exe file then you can check the SHA 256 Bit Checksum as below.
# sha256sum setup.exe b7e8dabcaf825a65085564a63791355f37a18d5df5b3da71d4c0002ee40522f6 setup.exe
The text “b7e8dabcaf825a65085564a63791355f37a18d5df5b3da71d4c0002ee40522f6” is SHA 256 Bit Checksum of setup.exe file.
- If you have check sum of some downloaded file then you can verify integrity of the file as below.
# echo 'b7e8dabcaf825a65085564a63791355f37a18d5df5b3da71d4c0002ee40522f6 setup.exe' | sha256sum --check setup.exe: OK
If you get OK as response then the file is OK.
- You can use this command to verify downloaded files.