ACTIVITY: BASIC HASHING OF FILES IN *NIX SYSTEMS
This activity is ungraded
Time: This activity should take approximately 20 minutes
SOFTWARE
- Windows: hashcalc (www.slavasoft.com/hashcalc/)
- Linux/Unix: md5sum and shasum
- Mac: md5 and shasum
GOAL
In this activity, we will perform basic hashing of files, and examine how changes affect file hashes.
You may want to review the hash demonstration in Data Preservation before beginning this activity.
INSTRUCTIONS
- Create or select a text file with some information in it.
- Calculate and record the hash value of your text file
- Make the following changes to your text file and calculate the hash value after each change:
- Change one character
- Change the filename, mv myText aNewName
- Change one of the rwx permissions (using chmod), for example chmod g+w yourText
- Create a symlink to your text file, and calculate the hash of you symlink, for example, ln –s yourText