HeatWare.net header image
HeatWare.net
TwitterRSSEmail
  • Home
  • Windows
    • Windows 8
    • Windows 7
    • Windows Vista
    • Windows XP
  • Linux/Unix
  • Mac
  • Mobile
    • Android
    • iOS
    • Phones (Help / Resources)
  • Software / Programming
    • Free Software
    • Programming – General
    • PHP
    • Ruby/Rails
    • Quality Assurance (QA)
    • Software – General
    • Software Help
    • Databases
  • Cool Websites
  • Other
    • Deals & Bargains
    • News
    • Video Games
    • Hardware
    • Electronics
  • About

5 comments / March 25, 2009 / sood / Linux/Unix

How to create MD5 Checksums and validate a file in Linux

This article will explain how to generate a MD5 Checksum on a file or list of filesa and also how to validate a file against a known MD5 Checksum. For those of you that are not familiar with MD5 Checksums, the purpose is to validate the integrity of a file that may have been corrupted or tampered with. For example, it is possible for file to be corrupted in the process of downloading it from a website or FTP server. In order to verify if it has been corrupted or not, the publisher of the file you downloaded can include a MD5 Checksum (a string of numbers of letters) which is compared to the file you just downloaded. If the two checksums match, that means the files are identical – no corruption has occurred.  Now lets take a look at some examples.

Generate MD5 Checksum on a single file

md5sum filename

Generate MD5 Checksum on multiple files

md5sum filename1 filename2 filename3

Generate MD5 Checksum and ouptut to file

md5sum filename > md5.txt

Compare MD5 Checkum output file to current file in directory

md5sum -c md5.txt

Example of what a MD5 Checksum looks like

d4fdb933151cad1eb58e798d2874f8f6 send_file-1.0.0.7-0.i386.rpm

Related Posts

  • Using Linux ‘head’ command to preview a file
  • Free Linux utility to convert PDF to Text file
  • How to append string/data to a file in Linux
  • Using 'tail' to output updates/appendings to a file in Linux
  • How to open/uncompress a .tar.bz2 file

Linux

5 comments… add one
  1. pokemon September 2, 2013, 4:17 am

    Thanks, very helpful!

  2. Modise June 29, 2015, 2:51 am

    Very useful

  3. Tekumel February 10, 2016, 11:03 am

    6 yr old post and still SPOT ON. Thank you.

  4. M.S.Arun October 13, 2016, 3:08 am

    Excellent..!!

    Pretty straight forward explanation.

    Thanks a lot for sharing this info.

  5. mackmans March 6, 2017, 12:53 am

    visit this site

Cancel reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Why You Should Consider Diving Apps
  • How to Buy a Smartphone that Fits Your Budget
  • How to Overcome Frustrating PDF Stress
  • Convert PDF to Word: Easy, Reliable and Quality Conversion
  • PDF to Excel App ­ – A New Way of Handling Tricky Documents

Recent Comments

  • Valarie Walter on Basic Troubleshooting Steps for your Cell Phone
  • John Mists on A Brief History of Android OS
  • syarif on PostgreSQL: How to reload config settings without restarting database
  • Raghu on How to SSH to a server using Ruby – Part I
  • francisco clemente on Basic Troubleshooting Steps for your Cell Phone

Tags

ACSLS Android Bargain Cell Phones Cool Software Cool Websites Databases Deals Ebooks Facebook Free Software G2x Galaxy S5 iOS iPhone Kindle LG Linux Linux/Unix Mac Mobile mysql Office OpenStack OS X PHP Postgres PostgreSQL ruby Samsung Galaxy S6 Shell Smartphones Sun T-Mobile Tips Tips & Tricks Ubuntu Unix Virtualization VMWare Windows Windows 7 Windows 8 Windows Vista Windows XP

Latest Tweet

Follow @HeatwaredotNet

SP
@HeatwaredotNet

  • Why You Should Consider Diving Apps https://t.co/Is41cdUv2I #diving-apps
    about 6 years ago

All Categories

Other Links

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 2015 — HeatWare