The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File timestamp stevefox UNIX for Dummies Questions & Answers 4 12-25-2007 01:14 AM
change timestamp of file isingh786 HP-UX 1 05-15-2006 01:56 PM
Create file with old timestamp Kris_Kart_101 UNIX for Dummies Questions & Answers 2 10-14-2005 01:18 PM
timestamp of file krisdhar UNIX for Dummies Questions & Answers 4 10-28-2003 10:31 AM
putting a timestamp in a file rocker40 UNIX for Dummies Questions & Answers 2 10-22-2003 11:56 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-04-2006
rahulrathod rahulrathod is offline
Registered User
  
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 158
Chnge timestamp of a file

How to change the timestamp of a file to a previous date?

Regards,
Rahul.
  #2 (permalink)  
Old 01-04-2006
vino's Avatar
vino vino is offline Forum Staff  
Supporter (in vino veritas)
  
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,798
You did not mention which OS. Assuming Linux.

Code:
[/tmp]$ touch file
[/tmp]$ ls -l file
-rw-r--r--    1 xxxxxxxx g900            0 Jan  4 05:33 file
[/tmp]$ touch -d "Dec 1 2005" file
[/tmp]$ ls -l file
-rw-r--r--    1 xxxxxxxx g900            0 Dec  1 00:00 file
[/tmp]$
  #3 (permalink)  
Old 01-04-2006
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,953
in solaris,

Code:
touch -am [MMDDhhmm[yy]] <filename>
  #4 (permalink)  
Old 01-04-2006
rahulrathod rahulrathod is offline
Registered User
  
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 158
Thanks

Thanks guys.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:15 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0