Session and utilities
The sha1sum command
Computes the SHA-1 hash (160 bits) of a file. Stronger than MD5, though SHA-256 is preferred today.
Syntax
sha1sum [archivo...]Most useful options
-cChecks the checksums listed in a fileCopy-ready examples
$ sha1sum /etc/passwdSHA-1 hashYou can try them in the browser terminal: it does not touch your computer.
Typical mistakes
- SHA-1 is considered weak for signatures; use it only for basic integrity.
FAQ
What is the difference between SHA-1 and SHA-256?
SHA-256 produces a longer hash and is considered secure.
Learn to actually use it
The basic Linux course takes you from zero to console fluency with 24 self-grading lessons.
Start the free course