Subscribe:

Ads 468x60px

Pages

Tuesday, August 16, 2011

touch command

How to change creation date and creation time of existing file

Example:

$ ls -l abc
-rw-rw-r-- 1 sunshine se 16645 Apr 30 10:34 abc
$ touch -t 201003010800 abc
$ ls -l abc
-rw-rw-r-- 1 sunshine se 16645 Mar 1 08:00 abc
==============================================
Option
-t time
Uses the specified time instead of the current time.
time will be a decimal number of the form:

[[CC]YY]MMDDhhmm[.SS]

0 comments:

Post a Comment