ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Finding a File by MD5 Sum

    Scheduled Pinned Locked Moved IT Discussion
    linuxunixfindmd5md5sumchecksum
    1 Posts 1 Posters 703 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Sometimes you need to find a file by a matching MD5 Checksum but have no idea where to look and there is no tool for finding a file in this way. This little one liner can help a lot:

      find / -name filename -exec md5sum {} \; | grep $sum
      

      Simply replace “filename” with the name of the file that you are looking for and either store the MD5SUM in the $sum variable or replace that variable with the sum itself. It’s that easy. Nothing complex here, just not a technique that everyone has thought to use.

      Originally found on my Linux blog in 2014 here: http://web.archive.org/web/20140825114908/http://www.scottalanmiller.com/linux/2014/08/18/finding-a-file-by-md5-sum/

      1 Reply Last reply Reply Quote 3
      • 1 / 1
      • First post
        Last post