Verify download files via FTP

Posted on 2014-08-07
Last Modified: 2014-08-11
Hi experts,
I've transferred via sftp (with WinSCP tool) some files from a Windows machine to a Linux machine.
Now I'd like to Know if the files are exactly alike

What commands do I need to check if the files are exactly alike?

Thanks in advance!
Question by:ralph_rea
    LVL 20

    Accepted Solution

    You can use sha1sum, it is part for the GnuWin32 to check for the files fingerprints in Windows. Sha1sum comes with Linux natively.
    LVL 89

    Expert Comment

    by:John Hurst
    You can also use WinMerge to compare files. I do that and it works fine. (

    Author Comment

    How can I use sha1sum on Windows 7?

    my files are binary files
    LVL 1

    Expert Comment

    I would suggest multi-level filtering compare:

    1. First compare the check sum
    2. If #1 matches check file size
    3. if #2 matches
    4.  Then finger print match using any APIs listed.
    LVL 89

    Expert Comment

    by:John Hurst
    If you can put the two files on a common file system (USB key or drive), WinMerge will compare binary files just fine.

    Then in addition to the above, you can also use DigestIT2004 (works in Windows 8.1) to create and compare MD5 hash totals. I use this tool for verifying very large downloads.
    LVL 27

    Assisted Solution

    Download the sha1sum version for Windows:  (20k) (9k)

    You can find the announcement here

    or get the Microsoft File Checksum Integrity Verifier

    You can already compare the contents of two files in Command Prompt and Powershell.
    compare-object (get-content one.txt) (get-content two.txt)
    fc.exe filea.txt fileb.txt

    for binary files:
    fc.exe /b filea.exe fileb.exe

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Do email signature updates give you a headache?

    Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

    The purpose of this article is to demonstrate how we can use conditional statements using Python.
    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
    With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now