LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-23-2013, 09:35 AM   #1
el848484
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Rep: Reputation: 0
md5sum rejecting, than accepting file sums


This is what's happening:
--------
$ ls -l
total 8
-rw-rw-r-- 1 idb idb 53 May 23 10:13 file1
-rw-rw-r-- 1 idb idb 60 May 23 10:13 file2

$ md5sum -b * > ../PMmd5

$ more ../PMmd5
727036f6e7f9abf9e48120f0861e1b73 *file1
2e4ee3e386d70e972904aae7dac4a191 *file2

$ md5sum -c * ../PMmd5
md5sum: file1: no properly formatted MD5 checksum lines found
md5sum: file2: no properly formatted MD5 checksum lines found
file1: OK
file2: OK

$ uname -a
Linux monaco.jefferson.edu 2.6.18-164.el5PAE #1 SMP Tue Aug 18 15:59:11 EDT 2009 i686 i686 i386 GNU/Linux
$ more /etc/redhat-release
Red Hat Enterprise Linux Server release 5.9 (Tikanga)
--------
What am I doing wrong? Any ideas appreciated.

Don

$
 
Old 05-23-2013, 10:22 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Quote:
Originally Posted by el848484 View Post
$ md5sum -c * ../PMmd5
md5sum: file1: no properly formatted MD5 checksum lines found
md5sum: file2: no properly formatted MD5 checksum lines found
file1: OK
file2: OK
You are using the wrong command syntax, it should be:
Code:
md5sum -c ../PMmd5
The misplaced * in your command will expand the files present in the directory and these are expected to be files holding md5sum info (the -c switch) by md5sum. That's where the error/warning is coming from.
 
Old 05-23-2013, 10:23 AM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,540

Rep: Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556Reputation: 1556
Quote:
Originally Posted by el848484 View Post
Code:
$ md5sum -c * ../PMmd5
md5sum: file1: no properly formatted MD5 checksum lines found
md5sum: file2: no properly formatted MD5 checksum lines found
file1: OK
file2: OK
Do not include the "*". The only filename arguments that "md5sum -c" expects are the names of files containing checksums. The names of the files to be checked are included within the lines of the checksum file (or files).

Last edited by rknichols; 05-23-2013 at 10:30 AM.
 
Old 05-23-2013, 10:29 AM   #4
el848484
LQ Newbie
 
Registered: Jul 2007
Posts: 2

Original Poster
Rep: Reputation: 0
I was afraid it was something stupid like that. Thanks for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Why does the MD5SUM of a file change? jhsu Linux - Newbie 7 10-14-2009 06:33 PM
file utility md5sum slackamp Slackware 11 06-04-2007 08:36 PM
md5sum file satimis Fedora 2 02-24-2006 10:46 AM
Hwo do I use MD5 sums to check file downloads? jdruin Linux - General 3 12-01-2003 11:49 AM
md5sum how do you check a file with it ? Joe47 Linux - Newbie 6 11-30-2003 08:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration