For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > December 2007 > Re: How can I identify whether the file is modified with touch or









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: How can I identify whether the file is modified with touch or
Eric Sosman

2007-12-19, 8:10 am

lak wrote:
> I want to identify whether a file is really modified or it is done by
> using touch command?
> How can I find that?


Keep a copy of the file's original contents somewhere.
When you suspect the file may have been modified, compare
it to your copy. However, this still doesn't catch a
modification that overwrites some or all of the file with
the same byte values that were already present.

What are you trying to accomplish?

--
Eric Sosman
esosman@ieee-dot-org.invalid
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com