[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: change date of directory and file



a file exists named 'test', to change the time stamp on test issue the
following:

touch -t 200212301433 test

2002 year, 12month, 30th, 14:33

format -  [[CC]YY]MMDDhhmm[.ss] 

see man touch.

Regards,
Geoff.

> -----Original Message-----
> From: redhat-list-admin redhat com
> [mailto:redhat-list-admin redhat com]On Behalf Of Nabin Limbu
> Sent: Wednesday, 4 February 2004 1:58 a.m.
> To: redhat-list redhat com
> Subject: change date of directory and file
> 
> 
> Hi,
> If we change any file and save it or create any directory 
> then the created date and 
> time of the file or directory will be also be attached with 
> the file. Is there anyway to 
> change this "date and time" only of the exitsting directory 
> and file without saving 
> them again.
> 
> Regards
> Nabin Limbu
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request redhat com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]