【Linux】快速创建文件的命令方法
[root@centos7 dir1]# ll
total 0
-rw-r--r-- 1 root root 0 Aug 15 02:39 file1
-rw-r--r-- 1 root root 0 Aug 15 02:39 file10
-rw-r--r-- 1 root root 0 Aug 15 02:39 file2
-rw-r--r-- 1 root root 0 Aug 15 02:39 file3
-rw-r--r-- 1 root root 0 Aug 15 02:39 file4
-rw-r--r-- 1 root root 0 Aug 15 02:39 file5
-rw-r--r-- 1 root root 0 Aug 15 02:39 file6
-rw-r--r-- 1 root root 0 Aug 15 02:39 file7
-rw-r--r-- 1 root root 0 Aug 15 02:39 file8
-rw-r--r-- 1 root root 0 Aug 15 02:39 file9
如果想创建file01-file10的话,可以这么创建
touch dir1/file{01..10};
[root@centos7 dir1]# ll
total 0
-rw-r--r-- 1 root root 0 Aug 15 02:41 file01
-rw-r--r-- 1 root root 0 Aug 15 02:41 file02
-rw-r--r-- 1 root root 0 Aug 15 02:41 file03
-rw-r--r-- 1 root root 0 Aug 15 02:41 file04
-rw-r--r-- 1 root root 0 Aug 15 02:41 file05
-rw-r--r-- 1 root root 0 Aug 15 02:41 file06
-rw-r--r-- 1 root root 0 Aug 15 02:41 file07
-rw-r--r-- 1 root root 0 Aug 15 02:41 file08
-rw-r--r-- 1 root root 0 Aug 15 02:41 file09
-rw-r--r-- 1 root root 0 Aug 15 02:41 file10
如果先创建file001-file010的话,可以这么创建
[root@centos7 ~]# touch dir1/file{001..10};
[root@centos7 ~]# cd dir1/
[root@centos7 dir1]# ll
total 0
-rw-r--r-- 1 root root 0 Aug 15 02:42 file001
-rw-r--r-- 1 root root 0 Aug 15 02:42 file002
-rw-r--r-- 1 root root 0 Aug 15 02:42 file003
-rw-r--r-- 1 root root 0 Aug 15 02:42 file004
-rw-r--r-- 1 root root 0 Aug 15 02:42 file005
-rw-r--r-- 1 root root 0 Aug 15 02:42 file006
-rw-r--r-- 1 root root 0 Aug 15 02:42 file007
-rw-r--r-- 1 root root 0 Aug 15 02:42 file008
-rw-r--r-- 1 root root 0 Aug 15 02:42 file009
-rw-r--r-- 1 root root 0 Aug 15 02:42 file010
【Linux】快速创建文件的命令方法的更多相关文章
- Linux mkdir 创建文件夹命令
介绍: 该命令创建指定的目录名,要求创建目录的用户在当前目录中具有写权限,并且指定的目录名不能是当前目录中已有的目录 语法: mkdir [-m] [-p] 目录名 选项介绍: -m: 对新建目录设置 ...
- linux几种快速清空文件内容的方法
linux几种快速清空文件内容的方法 几种快速清空文件内容的方法: $ : > filename #其中的 : 是一个占位符, 不产生任何输出. $ > filename $ echo & ...
- [转]linux查看日志文件内容命令
linux查看日志文件内容命令tail.cat.tac.head.echo tail -f test.log你会看到屏幕不断有内容被打印出来. 这时候中断第一个进程Ctrl-C, ---------- ...
- linux查看日志文件内容命令tail、cat、tac、head、echo
linux查看日志文件内容命令tail.cat.tac.head.echo tail -f test.log你会看到屏幕不断有内容被打印出来. 这时候中断第一个进程Ctrl-C, ---------- ...
- 【Linux】linux查看日志文件内容命令tail、cat、tac、head、echo
linux查看日志文件内容命令tail.cat.tac.head.echo tail -f test.log你会看到屏幕不断有内容被打印出来. 这时候中断第一个进程Ctrl-C, ---------- ...
- linux查看日志文件内容命令tail、cat、tac、head、echo、vi
linux查看日志文件内容命令tail.cat.tac.head.echo tail -f test.log你会看到屏幕不断有内容被打印出来. 这时候中断第一个进程Ctrl-C, ---------- ...
- linux查看日志文件内容命令tail、cat、tac、head、echo详解
linux查看日志文件内容命令tail.cat.tac.head.echo tail -f test.log你会看到屏幕不断有内容被打印出来. 这时候中断第一个进程Ctrl-C, ---------- ...
- Linux学习日志--文件搜索命令
开头总结: 学习了Linux中的文件搜索命令find和locate,系统搜索命令whereis 和which ,字符串搜索命令grep,find和locate的差别和使用方法格式,什么是path环境变 ...
- 使用nginx的rewrite实现代理指定文件夹命令方法
使用nginx的rewrite实现代理指定文件夹命令方法 使用nginx代理Tomcat,Tomcat公布web的时候通常都是带着项目名称的. 比方项目名称为"aven".那么公布 ...
随机推荐
- 轮廓检测论文解读 | Richer Convolutional Features for Edge Detection | CVPR | 2017
有什么问题可以加作者微信讨论,cyx645016617 上千人的粉丝群已经成立,氛围超好.为大家提供一个遇到问题有可能得到答案的平台. 0 概述 论文名称:"Richer Convoluti ...
- Nosql 和 Sql 简单概念介绍
Nosql (非关系数据库) 代表数据库:redis / hbase /mongoDB /CouchDB /Neo4J 存储数据使用的是数据结构化存储方法的集合,意味着数据的存储可以是文档.集合.键值 ...
- Another MySQL daemon already running with the same unix socket. & ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
mysql 断电后启动失败解决 应该是mysql.sock文件还存在. 把这个文件删掉就可以了. mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.s ...
- vue第二单元(webpack的配置-学习webpack的常用配置)
第二单元(webpack的配置-学习webpack的常用配置) #课程目标 掌握webpack的常用配置 掌握如何根据实际的需求修改webpack的对应配置 了解webpack-dev-server的 ...
- SSCTF2020 RE2
SSCTF2020 RE2 有时间做了一下SSCTF 2020的re2 附件地址: 链接:https://pan.baidu.com/s/1k5SuiJIHJzgYZVbc9hX8ZA 提取码:lyc ...
- vue API 知识点(4) --- 指令、特殊 attribute 、内置组件
一.指令 1.v-text <span v-text="msg"></span> <!-- 两种写法是一样的 --> <span>{ ...
- [EF] - Code First处理Clustered Index
Clustered Index <=>集群索引: http://msdn.microsoft.com/en-us/library/ms177443.aspx 由于其特殊性,使得每个tabl ...
- Django 的自我进化
今天是基督文明的传统节日圣诞节.作为一名靠大乐透来实现买房买车梦想的社畜.怎么可能这么早享受节日时光.所以就久了下面这些文字.用来记录一下无聊的下午时光. 本片主要记录Django 中添加一些便利的c ...
- 【mybatis-plus】条件查询
用mp也可以方便的实现稍复杂点的条件查询,当然了很复杂的就还是要xml编写sql了. 一.wapper介绍 先看下mp的条件构造抽象类的结构: Wrapper: 条件构造抽象类,最顶端父类 Abstr ...
- 无延时去斗按键实现方法(不好CPU)
这一灵感来源于定时器计数的方法,最后可以实现的效果跟咱们电脑键盘按键的效果一样!我先来介绍下基本原理吧! 采用定时器中断的方法,比如定时器终端我们设置为5ms,我们需要按键按下超过40ms时才算有按键 ...