Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Ok, I have never posted on a forum before because I have always been able to figure out my issue before it came to that. But now I'm dead in the water with this program I'm trying to write.
I was asked by a co-worker to write a script that would check the hash keys of database files in a given directory. Before I write any script I run the commands in a term to ensure they will work. I was able to run
md5sum "directory" >> md5sum.txt. This gave me the all the hash keys for the files and put them in their own folder. I did the same for the files I was trying to compare them to.
md5sum "directory" >> md5sumb.txt
This worked as well, but when I try and run
md5sum -c md5sum.txt md5sumb.txt all I get are errors saying either the
"filename: No such file or directory".
"FAILED open or read"
I have been banging my head on the wall and trolling forums for almost a week now and I can not find any help with my situation. Every forum I pull up is about people only using md5sum for .iso files or cd's. Is this just not the command I should be using to compare txt files? Or am I just retarded and not seeing what I'm doing wrong. I have never been able to get the -c flag to work....HELP!!!!
After you saved the hashes for files in a directory (I prefer 'md5deep -r /some/path > /path/to/md5sum.txt') you should be able to verify them hashes with 'md5sum -c /path/to/md5sum.txt' NP. Unless you actually meant you wanted to compare file contents ('man diff') that is...
Thank you so much I actually figured it out yesterday before I left work, but you are right it was because inside the md5sum.txt file I did not have the path to the database files. Once I threw those in there I was able to use the -c. But thank you anyway. : )