linux 的touch命令

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

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

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

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

 

posted @ 2023-04-23 17:06  东宫得臣  阅读(17)  评论(0编辑  收藏  举报