Re: plug] Backdating a file

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: R P Herrold
Date:  
To: plug-discuss
Old-Topics: Backdating a file
Subject: Re: plug] Backdating a file
On Tue, 16 Nov 2004, AZ Pete wrote:

> Is there a way to set the modified date for a file to some point in the past?
>
> This needs to be done on a production box, so I can't simply set the system
> clock back, touch the file, and reset the clock again.


man touch is your friend

something like:

    touch -n -t [[CC]YY]MMDDhhmm[.ss] /path/to/target/file


will work.

-- Russ Herrold
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss