linux touch
来源:互联网 发布:电脑修复软件 编辑:程序博客网 时间:2024/05/17 21:59
touch命令有两个功能:一是用于把已存在文件的时间标签更新为系统当前的时间(默认方式),它们的数据将原封不动地保留下来;二是用来创建新的空文件
-a:或–time=atime或–time=access或–time=use 只更改存取时间;
-c:或–no-create 不建立任何文件;
-f:此参数将忽略不予处理,仅负责解决BSD版本touch指令的兼容性问题;
-m:或–time=mtime或–time=modify 只更该变动时间;
-r:<参考文件或目录> 把指定文件或目录的日期时间,统统设成和参考文件或目录的日期时间相同;
-t:<日期时间> 使用指定的日期时间,而非现在的时间;
新建
touch x
total 12drwxrwxr-x 3 wgy wgy 4096 May 15 19:23 ./drwxr-xr-x 17 wgy wgy 4096 May 15 12:09 ../drwxrwxr-x 2 wgy wgy 4096 May 15 14:34 a/-rw-rw-r-- 1 wgy wgy 0 May 15 19:23 x
更新时间:对于已经存在的文件再次touch
touch x
total 12drwxrwxr-x 3 wgy wgy 4096 May 15 19:23 ./drwxr-xr-x 17 wgy wgy 4096 May 15 12:09 ../drwxrwxr-x 2 wgy wgy 4096 May 15 14:34 a/-rw-rw-r-- 1 wgy wgy 0 May 15 19:24 x
阅读全文
0 0
- Linux touch
- linux ------ touch
- linux touch
- Linux命令:touch使用方法
- touch讲解(Linux)
- linux touch 命令详解
- Linux命令touch
- Linux date and touch
- linux命令-touch命令
- linux :touch 命令
- linux touch命令
- linux touch命令
- linux下touch
- linux命令之--touch
- Linux touch命令
- linux命令 -- touch 命令
- Linux命令:touch
- linux touch 命令
- Visual Studio 连接SQL Server数据库
- C++类模板
- ECNU Problem #3247 铁路修复计划(MST + 二分)
- Java知识
- 实习第一天:mybites的学习笔记(纯手打)
- linux touch
- 离散
- The content of the adapter has changed but ListView did not receive a notification
- 文件描述符fd与FILE
- Java----匿名内部类与适配器模式
- 【转】OpenCV图像的轮廓的匹配
- Python运算符和表达式
- Java配置文档
- MVP设计模式的写法