Ben*_*ela 20
您可以使用触摸。例如::
touch -d '2007-01-31 8:46:26' file
Run Code Online (Sandbox Code Playgroud)
或者通常更容易,如果你有一个已经有 mtime 的 file2,你可以用 -r 复制时间:
touch -r file2 file
Run Code Online (Sandbox Code Playgroud)
还有 -t 选项的奇怪格式:
touch -t [[CC]YY]MMDDhhmm[.ss] file
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
7770 次 |
最近记录: |