Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use of Checksum command

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

What is the purpose of the sum command in Linux? I mean how could the contents of a file that I download differ in my local copy after downloading?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Two reasons I can think of. Sometimes the download fails. I have gotten downloads where they appeared to succeed, but where a sizable portion of the back end of the file is all hex zeros. Doing a checksum will spot such a failed download. Of course, you often find out about this when you attempt to unpack it.

The other possibility is that someone hacked the download link and you end up downloading something other than what you expected. A checksum will help you identify such fraudulent downloads.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It has more general uses as well. You could run it periodically against your critical config files to detect any adjustments or hacks to your system.
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Though not fully convincing on the Checksum utility, I feel it to some extent meaningful.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic