[Ilugc] One Day One GNU/Linux Command (SHASUM)

  • From: sbharathi@xxxxxxxxxxxxx (Bharathi Subramanian)
  • Date: Mon Oct 6 10:16:00 2008

Sat Oct 5 1991 1:41AM, Linus sent this mail to minix Usenet group:
http://groups.google.com/group/comp.os.minix/msg/2194d253268b0a1b

One Day One GNU/Linux Command
=============================

sha1sum - Compute & Check Secure Hash Algorithm Std 1 message digest.

Summary:

`sha1sum' computes a 160-bit checksum/fingerprint/message-digest for
each specified file.  `sha1sum' can also determine whether a file &
checksum are consistent. The sums are computed as per the FIPS-180-1
[http://www.itl.nist.gov/fipspubs/fip180-1.htm].

Example:

$ sha1sum file -- Compute and print the MD5 checksum of that file.

$ sha1sum -c input.txt -- Read checksum and filename from the file and 
                          validate checksums.

$ sha1sum -w -c input.txt -- Same as above and warn if the checksums 
                            format is wrong in the file.

$ sha1sum --status -c input.txt -- Indicate the status in exit status 
                                   code.

Read: man sha1sum

input.txt Format:-

2bff10a7855964335a86e84efb5f4ce9c40d4cfd  file1
e62341664decd9f55896ab3635697de29ed1077f  file2
9b088ddc22456233a76  file3

HTH :)
--
Bharathi S

Other related posts:

  • » [Ilugc] One Day One GNU/Linux Command (SHASUM) - Bharathi Subramanian