Tuesday, June 10, 2014

UNIX - Touch

touch - is a standard Unix program used to change a file's access and modification timestamps. It is also used to create a new empty file.

-a, change the access time only
-c, if the file does not exist, do not create it and do not report this condition
-d date_time, use the date_time specified to update the access and modification times
-m, change the modification time only
-r file, use the access and modification times of file

-t time, use the time specified (in the format below) to update the access and modification times

No comments:

Post a Comment