LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1130|回复: 2

touch命令的用法!

[复制链接]
发表于 2005-4-16 13:42:45 | 显示全部楼层 |阅读模式
touch命令该怎么用啊?大家能不能讲详细点!!
发表于 2005-4-16 15:27:44 | 显示全部楼层
google
回复 支持 反对

使用道具 举报

发表于 2005-4-17 03:43:37 | 显示全部楼层

  1. dehao@7dehao ~ $ touch --help
  2. 用法:touch [选项]... 目录...
  3. 将每个<文件>的访问及修改时间都更新为目前的时间。
  4. 长选项必须用的参数在使用短选项时也是必须的。
  5.   -a                     change only the access time
  6.   -c, --no-create        do not create any files
  7.   -d, --date=STRING      parse STRING and use it instead of current time
  8.   -f                     (ignored)
  9.   -m                     change only the modification time
  10.   -r, --reference=文件   使用指定<文件>的时间属性而非目前的时间
  11.   -t STAMP               使用 [[CC]YY]MMDDhhmm[.ss] 格式的时间而非目前的时间
  12.   --time=WORD            使用 WORD 指定的时间:access、atime、use 都等於 -a
  13.                            选项的效果,而 modify、mtime 等於 -m 选项的效果
  14.       --help     显示此帮助信息并离开
  15.       --version  显示版本信息并离开

  16. 请注意,-d 和 -t 选项可接受不同的时间/日期格式。

  17. Report bugs to <bug-coreutils@gnu.org>.
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表