Linux命令--touch
来源:互联网 发布:五子棋人工智能算法 编辑:程序博客网 时间:2024/05/16 05:48
一、touch命令简介
- 命令所在路径:/bin/touch
- 功能描述:
- ①创建空的文件夹(可以批量创建空文件)
- ②把以存在的文件时间更新为系统当前时间
- 语法:touch + 文件名
二、touch命令实例
- 更新文件时间
[root@mail test]# ll总用量 4-rw-r--r-- 1 root root 12 3月 12 13:43 1.txt[root@mail test]# touch 1.txt [root@mail test]# ll总用量 4-rw-r--r-- 1 root root 12 3月 12 13:58 1.txt #更新到系统当前时间
- 创建空的文件
[root@mail test]# ll总用量 4-rw-r--r-- 1 root root 12 3月 12 13:58 1.txt-rw-r--r-- 1 root root 0 3月 12 14:06 2.txt #文件大小为0所以是个空文件
- 批量创建空文件
[root@mail test]# touch {1..10}.txt[root@mail test]# ls10.txt 1.txt 2.txt 3.txt 4.txt 5.txt 6.txt 7.txt 8.txt 9.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 命令
- 抽象工厂模式
- 新浪sina gitlab邮件收不到
- java集合框架
- HDU 2389 Rain on your Parade(Hopcroft-Carp算法模板)
- 每个人都需要的中文排版指南
- Linux命令--touch
- Vue.js 相关问题
- 生产者消费者——一对一
- Mac Pro® Rackmount Kit
- swift项目桥接通过cocoapods pod下来的第三方oc文件引入不成功
- 深入浅出ES6(六):解构(Destructuring)
- 链表中环的入口节点
- Android开发:最全面、最易懂的Webview详解
- Python进阶(十)-Python 编程规范