The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to find a file named vijay in a directory using find command amirthraj_12 UNIX for Dummies Questions & Answers 6 10-25-2008 09:37 AM
Find Oldest file in a directory tree rahulrathod Shell Programming and Scripting 24 06-05-2008 03:01 PM
find the length of file names in a directory? koti_rama Shell Programming and Scripting 5 06-04-2008 07:19 AM
find a file or directory under public_html milhan UNIX for Advanced & Expert Users 4 10-23-2002 09:07 AM
corrupted tar file klintsovi UNIX for Dummies Questions & Answers 1 07-21-2001 06:50 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 07-04-2006
Registered User
 

Join Date: May 2006
Posts: 3
how to find a corrupted file in a directory

Hi,

Dunno if this has already been discussed but can anyone tell me if there is any utility/command to find a corrupted file in an unix directory.

With smile,
karthik
Reply With Quote
Forum Sponsor
  #2  
Old 07-04-2006
dsbeerf's Avatar
Registered User
 

Join Date: Dec 2005
Location: Chicago, IL USA
Posts: 58
Quote:
Originally Posted by skarthik_d
Hi,

Dunno if this has already been discussed but can anyone tell me if there is any utility/command to find a corrupted file in an unix directory.

With smile,
karthik
In Sun's Solaris, they have a utility that keeps a checksum (I think it's a checksum) of all the files you have chosen to install from their distributions, and a command can check if a file has a different checksum from what it is supposed to have. [I forget, right now, what it is called. Sun's "BigAdmin" will know.]

The other UNIX variants either have something similar, or you can create one quite easily. A "crafted" find command (or a little script) can "exec" a checksum on each file on your system and store the results. Another find command (or another script) can compare the current checksum with what you have in the "results" from the original "scan".

This is not perfect, but it will give a good indication of a file being changed or tampered with.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0