touch
更改文件时间戳或创建文件。
$ touch
示例
# 创建空文件 touch newfile.txt # 创建多个文件 touch file1.txt file2.txt file3.txt # 设置指定时间戳 touch -t 202401011200 file.txt # 使用参考文件 touch -r ref.txt target.txt # 不创建新文件 touch -c existing.txt
Sponsors
更改文件时间戳或创建文件。
示例
# 创建空文件 touch newfile.txt # 创建多个文件 touch file1.txt file2.txt file3.txt # 设置指定时间戳 touch -t 202401011200 file.txt # 使用参考文件 touch -r ref.txt target.txt # 不创建新文件 touch -c existing.txt
Sponsors