• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 425
  • Last Modified:

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!
0
ralph_rea
Asked:
ralph_rea
2 Solutions
 
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
 
John HurstBusiness 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
John HurstBusiness 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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now