Skip to content

How to perform checksum on a file?

How to perform checksum on a file?

Answer:

You can use the md5sum or shasum commands.

Example

#md5sum test.txt

f1d41356dcabb8d8acefed069b22b0da  test.txt
#shasum test.txt

809970aec0109c5464dd36a3a9a5a9e79f838313  test.txt

md5sum is faster if you perform the command on a very large file, but shasum is more secure since the chance of two different files have the same checksum is smaller.

References:

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  1. How to perform checksum on a folder?
  2. Visual Shell for Linux
  3. How to change the default runlevel?
  4. Maximum Filename Length in EXT3?
  5. Perform syntax check to PHP files

One Trackback/Pingback

  1. How to perform checksum on a folder? | Linux Ask! on Sunday, February 7, 2010 at 3:43 am

    [...] Previous article told you how perform checksum on a file. How about to perform checksum on a folder? [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*