Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Jan 012010

How to perform checksum on a file?


You can use the md5sum or shasum commands.


#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.


  2 Responses to “How to perform checksum on a file?”

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

  2. [...] get the MD5 checksum of a file under Mac OSX, like the md5sum command in Linux, you can [...]

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>