Use command: touch
Update the access and modification times of each FILE to the current time.
Format:
1) find . | xargs touch
2) find ./ -type X | xargs touch
File is of type c:
c character (unbuffered) special
d directory
p named pipe (FIFO)
f regular file
l symbolic link
s socket
D door (Solaris)
本文介绍如何使用touch命令来更新文件的访问时间和修改时间至当前时间。提供了两种实用的命令格式示例:一种是结合find与xargs命令更新当前目录下所有文件的时间戳;另一种是通过指定文件类型进行更新。
595

被折叠的 条评论
为什么被折叠?



