How to change inode change time of a file?

Posted by Emerald214 on Ask Ubuntu See other posts from Ask Ubuntu or by Emerald214
Published on 2011-11-15T10:12:41Z Indexed on 2011/11/15 10:14 UTC
Read the original article Hit count: 339

Filed under:
|

I tried to use

touch -d "2011-09-15 16:50" test.txt

but it just modify last access time and last modified time.

Access: 2011-09-15 16:50:00.000000000 +0700

Modify: 2011-09-15 16:50:00.000000000 +0700

Change: 2011-11-15 16:56:55.620124149 +0700

How to change the last change time?

I want to do this because my crontab use filectime($file) to get the last changed time, so I need to create a file of two months ago to test something.

© Ask Ubuntu or respective owner

Related posts about file

Related posts about time