LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 06-15-2011, 12:20 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Rep: Reputation: 48
quickest file content verification


I have read that md5sum for 2 different files can never be same so it is accurate but time consuming.
Code:
$time cksum /data/sumeet/iso/WINXPSP3.iso 
1295489342 704163840 /data/sumeet/iso/WINXPSP3.iso

real	0m7.242s
user	0m1.712s
sys	0m0.304s
$time md5sum /data/sumeet/iso/WINXPSP3.iso 
0cd0c28b54a7904b36617274acc73160  /data/sumeet/iso/WINXPSP3.iso

real	0m1.676s
user	0m1.392s
sys	0m0.260s
$time cksum /data/sumeet/iso/WINXPSP3.iso 
1295489342 704163840 /data/sumeet/iso/WINXPSP3.iso

real	0m1.892s
user	0m1.656s
sys	0m0.228s
I think disparity between time taken by cksum for same file may be due to caching.


Anyway , my question is which is fastest file content verification (forget byte count ) ?
 
Old 06-15-2011, 12:33 AM   #2
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Original Poster
Rep: Reputation: 48
I will read http://www.itworld.com/nlsnunixchecksum061116 .
 
  


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
Dividing content of one file by content of another larspend Linux - Newbie 5 04-12-2011 09:00 PM
[SOLVED] Sed – how do I save output to file with filename from content of another file? misarab Programming 4 02-28-2011 03:12 PM
Bash shell script and automating FTP Backups (File Verification) alternaloser Linux - Server 1 10-12-2009 01:18 AM
Partial file download verification Jack Taylor Linux - Networking 1 02-15-2005 01:39 PM
Windows XP Setup for user verification with Samba file server crazyswede Linux - Networking 2 07-28-2004 05:51 PM


All times are GMT -5. The time now is 12:24 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