命令九: touch

touch,一般用来创建不存在的文件或者更改已存在文件的时间戳,命令格式为touch [选项] 文件名

1. 创建不存在的文件

    touch test1.log

2. 查看文件,如果文件不存在的话不新建

    touch -c test2.log


参考链接:

https://www.cnblogs.com/peida/archive/2012/10/30/2745714.html

猜你喜欢

转载自blog.csdn.net/Ahead_J/article/details/84590834
今日推荐