[NBLUG/talk] GNU touch, and the file creation date

Rick ricklyb2 at yahoo.com
Thu Feb 28 21:20:10 PST 2008


Hi everyone,

The GNU touch command can be used to set the file modification and/or access dates to any arbitrary datetime value.  For some reason, it does not allow the file creation date to be changed.

>touch --time=modify -t 200112310000 filename
>touch --time=access -t 200212310000 filename
 
Does anyone know of a way to change a file's creation date?

Aside :  when viewing the file access date, by using the ls command, it appears that the file access date is reset to the current datetime after the results are displayed.  Is there any way to view the file access date without changing it?

>ls -l --time=access filename

Thanks,
Rick

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://nblug.org/pipermail/talk/attachments/20080228/44778ca3/attachment.htm 


More information about the talk mailing list