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!
ralph_reaAsked:
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.

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

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. (winmerge.org).
0
ralph_reaAuthor Commented:
Mazdajai,
How can I use sha1sum on Windows 7?

Hirst,
my files are binary files
0
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.

gireeshbabuCommented:
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.
0
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.
0
serialbandCommented:
Download the sha1sum version for Windows:

 ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.exe  (20k)
 ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.exe.sig

 ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.c (9k)
 ftp://ftp.gnupg.org/gcrypt/binary/sha1sum.c.sig

You can find the announcement here
http://lists.gnupg.org/pipermail/gnupg-announce/2004q4/000184.html

or get the Microsoft File Checksum Integrity Verifier
http://www.microsoft.com/en-us/download/details.aspx?id=11533


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
0
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
Linux

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.