linux 的touch命令

发布时间 2023-04-23 17:14:33作者: 东宫得臣

之前一直以为,touch命令的原本意图是创建文件,这也是我们运行touch的大部分场景。

今天,看到了官方手册页的描述touch - change file timestamps,刷新了认知。

原来touch是修改文件的时间戳的。

Update the access and modification times of each FILE to the
       current time.