amp*_*ent 36 rhel symlink timestamps
我知道如何更改常规文件的时间戳:
touch -t 201301291810 myfile.txt
Run Code Online (Sandbox Code Playgroud)
我无法用符号链接做同样的事情。是否可以?
发行版:RHEL 5.8
Ste*_*han 52
添加开关 -h
touch -h -t 201301291810 myfile.txt
Mandatory arguments to long options are mandatory for short options too.
-a change only the access time
-c, --no-create do not create any files
-d, --date=STRING parse STRING and use it instead of current time
-f (ignored)
-h, --no-dereference affect each symbolic link instead of any referenced
file (useful only on systems that can change the
timestamps of a symlink)
-m change only the modification time
-r, --reference=FILE use this file's times instead of current time
-t STAMP use [[CC]YY]MMDDhhmm[.ss] instead of current time
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
29575 次 |
| 最近记录: |