Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-14-2011, 11:20 PM   #1
sumeet inani
Registered: Oct 2008
Posts: 902
Blog Entries: 26

Rep: Reputation: 49
quickest file content verification

I have read that md5sum for 2 different files can never be same so it is accurate but time consuming.
$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-14-2011, 11:33 PM   #2
sumeet inani
Registered: Oct 2008
Posts: 902
Blog Entries: 26

Original Poster
Rep: Reputation: 49
I will read .


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

All times are GMT -5. The time now is 12:50 PM.

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