Actually i did modification in a file on server by mistake, now its showing current time stamp, is there any way to set the files modified date and stamp to last modifies time.
Please advice here.Thanks in advance.
Actually i did modification in a file on server by mistake, now its showing current time stamp, is there any way to set the files modified date and stamp to last modifies time.
Please advice here.Thanks in advance.
Restore a backup.
Assuming that you didn't change the file content and that you know the required timestamp, you could use the unix "touch" command to correct the timestamp. Depending on the circumstances, referring to your backup records could help find out the timestamp.
There can be implications on whether backup software will notice that the file has changed.
the GNU touch command is pretty useful here. You can set the modification, access or (default) inode times. You can set them by reference to another file or via a specific date string.
Try touch command
if files present time stamp is may 10 10:24
Modify ur file, then give the following command
touch -t 200805101024 filename
Decomposition of 200805101024
2008 year , 05 - month number , date, time
hey i played unix for like 1 day then it lost connection and i cant play anymore? could you help me?
wrong place and wrong post
open a new thread and post your question
yes, this method can change your modification time for file, but there are three types of time for a file/folder
Access: 2011-02-02 20:12:00.000000000 +0530
Modify: 2011-02-02 20:12:00.000000000 +0530
Change: 2011-08-08 19:06:19.000000000 +0530
you can change first two but 3rd one is remain same as what time u change the file detail