We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
touch
touch 命令用来:(1)新建一个文件;(2)修改文件时间戳
touch [选项] 文件……
-f
仅负责解决 BSD 版本 touch 指令的兼容性问题
-r
touch -r a b 将 b 文件的时间戳修改成 a 文件的时间戳
touch -r a b
b
a
-t
指定时间戳
创建不存在的文件
touch a b
更新 log.log 和 log2.log 的时间戳相同
log.log
log2.log
touch -r log2.log log.log
设定文件的时间戳
touch -t 201211142234.50 log.log
格式:
[[CC]YY]MMDDhhmm[.SS]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
day 8 - linux 命令 :
touch
touch
命令用来:(1)新建一个文件;(2)修改文件时间戳语法
选项
-f
仅负责解决 BSD 版本
touch
指令的兼容性问题-r
touch -r a b
将b
文件的时间戳修改成a
文件的时间戳-t
指定时间戳
实例
创建不存在的文件
touch a b
更新
log.log
和log2.log
的时间戳相同touch -r log2.log log.log
设定文件的时间戳
touch -t 201211142234.50 log.log
格式:
[[CC]YY]MMDDhhmm[.SS]
The text was updated successfully, but these errors were encountered: