Rad*_*anu 11
您可以使用touch带有-t选项的命令。这是来自man touch:
Run Code Online (Sandbox Code Playgroud)NAME touch - change file timestamps SYNOPSIS touch [OPTION]... FILE... DESCRIPTION Update the access and modification times of each FILE to the current time. [...] -t STAMP use [[CC]YY]MMDDhhmm[.ss] instead of current time
一个例子:
touch -t 1312031429.30 /path/to/directory
Run Code Online (Sandbox Code Playgroud)
将改变修改日期directory来2013-12-03 14:29:30。