Verify download files via FTP

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!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JohnBusiness Consultant (Owner)Commented:
You can also use WinMerge to compare files. I do that and it works fine. (
ralph_reaAuthor Commented:
How can I use sha1sum on Windows 7?

my files are binary files
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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.
JohnBusiness Consultant (Owner)Commented:
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.
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.