How to set older file dates?

Brian Cluff brian at snaptek.com
Sat Mar 7 13:09:38 MST 2015


You need to specify the century part of the year as well, otherwise 
touch assumes you mean the current century.

Double digit dates from this century will become the y2.1k problem some 
day :)

Try:
touch -t 196709131010 filename

Brian Cluff

On 03/07/2015 11:59 AM, joe at actionline.com wrote:
> How can I set the date on some old files from
> the 60's, 70's, and 80's?
> When I use touch -t 6709131010 filename
> for the date September 13, 1967, the date
> shows up as September 13, 2067.
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>



More information about the PLUG-discuss mailing list