Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time stamp

Status
Not open for further replies.

gringomike

Technical User
Aug 6, 2003
148
GB
Hi all,

Does anybody know how to change the creation/access time of a file.......

Thanks

GM
 
I've worked it out - thanks anyway!

touch -amt 200404231430 file1.txt

GM
 
SQL> !touch /tmp/tempfile

SQL> !ls -l /tmp/tempfile
-rw-r--r-- 1 0 Apr 29 18:59 /tmp/tempfile

SQL> !settime
usage: settime [-f file] [mmddhhmm[yy]] file...

SQL> !settime 0428000104 /tmp/tempfile

SQL> !ls -got /tmp/tempfile
-rw-r--r-- 1 0 Apr 28 00:01 /tmp/tempfile

thanks & regards,
CS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top