linux touch 命令
来源:互联网 发布:淘宝店铺图标是什么 编辑:程序博客网 时间:2024/05/22 10:35
功能
创建不存在的文件或将已存在的文件的存储时间更新为当前时间语法
touch [选项] 文件选项
-c 不创建文件
-m 只更新文件的最后修改时间
示例
touch a.txt创建一个空的文件
lychie@ubuntu:/test$ touch a.txt
lychie@ubuntu:/test$ ls -l
总用量 0
-rw-rw-r-- 1 lychie lychie 0 9月 24 10:59 a.txt
lychie@ubuntu:/test$ ls -l
总用量 0
-rw-rw-r-- 1 lychie lychie 0 9月 24 10:59 a.txt
touch a.txt更新已存在的文件的最后修改时间
lychie@ubuntu:/test$ touch a.txt
lychie@ubuntu:/test$ ls -l
总用量 0
-rw-rw-r-- 1 lychie lychie 0 9月 24 11:01 a.txt
lychie@ubuntu:/test$ ls -l
总用量 0
-rw-rw-r-- 1 lychie lychie 0 9月 24 11:01 a.txt
touch -c b.txt文件若不存在,不创建
lychie@ubuntu:/test$ touch -c b.txt
lychie@ubuntu:/test$ ls
a.txt
lychie@ubuntu:/test$ ls
a.txt
0 0
- linux命令-touch命令
- linux命令 -- touch 命令
- Linux命令:touch使用方法
- linux touch 命令详解
- Linux命令touch
- linux :touch 命令
- linux touch命令
- linux touch命令
- linux命令之--touch
- Linux touch命令
- Linux命令:touch
- linux touch 命令
- Linux命令:touch使用方法
- linux touch 命令
- Linux touch命令
- Linux命令touch
- Linux命令:touch
- Linux touch 命令
- C#格式化字符串大全
- dnw在linux下的安装方法
- Maximum Product Subarray -- LeetCode
- 数据结构:链表
- zookeeper本机伪集群模式配置,坑人的配置。
- linux touch 命令
- 【android】在eclipse中更改应用包名及源码包名
- 第一篇—开端
- C# Slugify方法
- C# URL操作
- .htaccess实现301网页永久重定向及302临时重定向
- URL重写:RewriteCond指令与RewriteRule 指令格式
- Dynamic dates in Selenium IDE
- Apache 中文乱码问题解决方法