eme*_*ieu 8 command-line time files
我试着用
touch -d "2011-09-15 16:50" test.txt
Run Code Online (Sandbox Code Playgroud)
但它只是修改了上次访问时间和上次修改时间。
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
Run Code Online (Sandbox Code Playgroud)
如何更改上次更改时间?
我想这样做是因为我的 crontabfilectime($file)用来获取上次更改的时间,我需要在两个月前创建一个文件来测试一些东西。