![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Need Help: MD5
I am trying to compare two identical files by using md5 command, but cant get the right command parameters Please help me with any examples. All I want is to know how to compare two identical files which are residing on two different machines in my local network, for example:
Host_A - test01.tar.gz Host_B - test01.tar.gz Which command parameters should I use? ![]() |
|
||||
|
Pludi
Thank you!!! Ok, so now I know MD5 cant compare two identical files over the local network.Lets say: I will get the MD5 sum of two files, in this case what will be my next step? To use diff command?? I am a little bit confused here, it looks like its a simple problem, but it's not. I am Linux newbie ![]() |
|
|||||
|
The md5sum utility isn't meant to check if 2 files are the same, but if a file has been changed (small change in the file leads to big change in the hash). But that doesn't mean it can't be used for that, you'll just have to trick a bit.
The output of a typical md5sum run looks something like this Code:
51e3f4849cf415dbc9abdb46412df72e - Code:
if [ "$SUM1" = "$SUM2" ] |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|