如何修复修改日期为 1970-01-01 的文件的修改时间戳
如果某些文件的修改时间戳设置为 0(即 1970-01-01),你可以通过使用 touch 将所有修改时间戳设置为当前时间和日期来修复它:
fix-timestamps.sh
find . ! -newermt 1970-01-02 -exec touch {} \;另请参阅相关文章:如何查找修改时间为 1970-01-01 的文件
Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow