Close Menu
    Facebook X (Twitter) Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook X (Twitter) Instagram
    TecAdmin
    You are at:Home»Programming»Bash Shell»How to Generate and Verify md5 checksum of File in Linux

    How to Generate and Verify md5 checksum of File in Linux

    By RahulNovember 30, 20141 Min Read

    Command:

    md5sum myfile.php > myfile.php.md5

    Above command will generate md5 checksum of file myfile.php and store in file myfile.php.md5. myfile.php.md5 can be used to verify integrity of file anytime.

    Generate MD5:

    If we want to generate md5sum of a file named index.php. Use the following command to do it and store generated md5 value of file in index.php.md5 file.

    # md5sum index.php > index.php.md5
    

    Verify MD5:

    Now in future we can use index.php.md5 to verify integrity of file using following command. This command will show output as OK or FAILD.

    # md5sum -c index.php.md5
    

    md5 md5sum
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    Python Program to Find Hash of Given File

    How to Ignore SSL Certificate Check with Wget

    How to Ignore SSL Certificate Check with Curl

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • How to Change Port in Next.Js
    • Ubuntu 24.04 LTS: The Future of Open-Source Excellence
    • How to Execute Linux Commands in Python
    • Creating MySQL User with GRANT OPTION
    • Where to find crontab (cron) logs in Ubuntu & Debian
    Facebook X (Twitter) Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.