Re: plug] Backdating a file

Góra strony
Załączniki:
Wiadomość jako email
+ (text/plain)
Delete this message
Reply to this message
Autor: R P Herrold
Data:  
Dla: plug-discuss
Stare tematy: Backdating a file
Temat: 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