Verify a checksum in OS X
Edited by Rich, Eng
The OS X operating system offers two built in methods to verify the checksum of a downloaded file. A checksum is a sequence of numbers and letters which is derived from a newly created file. The checksum of a download can be compared to that of the original file to determine if data is missing. Missing data corrupts files, any corrupt file will not run correctly. Checking the checksum before working with large downloaded files can reduce the time spent troubleshooting.
- 1Find the checksum.Return to the web page you downloaded the file from. The site will list the SHA-1 or MD5 value of the file. Copy this value to a blank text document.Advertisement
- Open Terminal.
- Shortcut. Hold the command key down and press space to open Spotlight.
- Search for terminal in spotlight
- Type openssl md5 in terminal. Do not press enter yet.
- Enter file path. At this point you can drag and drop the file into the terminal to add the file path automatically. Otherwise, you need to type the entire path to the file manually.
- Interpreting output. The openssl md5 command will output the following: MD5(filename)= value.
- Open Terminal.
- Open Terminal. Follow the instructions above to open the terminal window.
- Type openssl sha1 in the terminal window. Do not press enter yet.
- Enter the file path. Drag and drop the file into the terminal window to copy the file path into the command. This will save you an immense amount of time.
- Interpreting the output. Output will read: SHA1(filename)= value.
- 4Comparing checksum.After either operation, copy the checksum into the same text document as the first step. Copy the value directly underneath the initial value. Compare the two values; If they are the same then the file downloaded correctly.Advertisement
Tips Tricks & Warnings
Categories : Operating System
Recent edits by: Rich