How To Checksum a File In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Use the md5sum utility:
The md5sum utility is a simple command line utility that calculates and verifies the MD5 checksum of a file. To calculate the checksum of a file, run the following command:
$ md5sum [filename]
This command will calculate the MD5 checksum of the specified file and display it on the terminal.
2. Use the sha256sum utility:
The sha256sum utility is similar to the md5sum utility, but calculates and verifies the SHA-256 checksum of a file. To calculate the checksum of a file, run the following command:
$ sha256sum [filename]
This command will calculate the SHA-256 checksum of the specified file and display it on the terminal.
3. Use the shasum utility:
The shasum utility is another command line utility that calculates and verifies the SHA-1 and SHA-2 checksum of a file. To calculate the checksum of a file, run the following command:
$ shasum -a [algorithm] [filename]
Where [algorithm] can be either 1, 224, 256, 384, 512, or 512224. This command will calculate the specified checksum of the specified file and display it on the terminal.