[Share Experiences] 使用touch命令修复文件的“修改时间”一例
Tofloor
default avatar
MeGusta
deepin
2025-04-01 03:07
Author

今天使用fsearch搜索文件,发现一些文件的修改时间出现了异常,于是用ChatGPT搜索了一个解决方法,现在分享如下。

1、问题

截图_选择区域_20250401105917.png

2、方法:
使用命令 touch -m -t [[CC]YY]MMDDhhmm[.ss] yourfile.xxx 来指定修改时间,例如:

touch -m -t 201605110638 /home/user/myfile.pdf
Reply Favorite View the author
All Replies

No replies yet