[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】快速创建文件的命令方法的更多相关文章

  1. Linux mkdir 创建文件夹命令

    介绍: 该命令创建指定的目录名,要求创建目录的用户在当前目录中具有写权限,并且指定的目录名不能是当前目录中已有的目录 语法: mkdir [-m] [-p] 目录名 选项介绍: -m: 对新建目录设置 ...

  2. linux几种快速清空文件内容的方法

    linux几种快速清空文件内容的方法 几种快速清空文件内容的方法: $ : > filename #其中的 : 是一个占位符, 不产生任何输出. $ > filename $ echo & ...

  3. [转]linux查看日志文件内容命令

    linux查看日志文件内容命令tail.cat.tac.head.echo tail -f test.log你会看到屏幕不断有内容被打印出来. 这时候中断第一个进程Ctrl-C, ---------- ...

  4. linux查看日志文件内容命令tail、cat、tac、head、echo

    linux查看日志文件内容命令tail.cat.tac.head.echo tail -f test.log你会看到屏幕不断有内容被打印出来. 这时候中断第一个进程Ctrl-C, ---------- ...

  5. 【Linux】linux查看日志文件内容命令tail、cat、tac、head、echo

    linux查看日志文件内容命令tail.cat.tac.head.echo tail -f test.log你会看到屏幕不断有内容被打印出来. 这时候中断第一个进程Ctrl-C, ---------- ...

  6. linux查看日志文件内容命令tail、cat、tac、head、echo、vi

    linux查看日志文件内容命令tail.cat.tac.head.echo tail -f test.log你会看到屏幕不断有内容被打印出来. 这时候中断第一个进程Ctrl-C, ---------- ...

  7. linux查看日志文件内容命令tail、cat、tac、head、echo详解

    linux查看日志文件内容命令tail.cat.tac.head.echo tail -f test.log你会看到屏幕不断有内容被打印出来. 这时候中断第一个进程Ctrl-C, ---------- ...

  8. Linux学习日志--文件搜索命令

    开头总结: 学习了Linux中的文件搜索命令find和locate,系统搜索命令whereis 和which ,字符串搜索命令grep,find和locate的差别和使用方法格式,什么是path环境变 ...

  9. 使用nginx的rewrite实现代理指定文件夹命令方法

    使用nginx的rewrite实现代理指定文件夹命令方法 使用nginx代理Tomcat,Tomcat公布web的时候通常都是带着项目名称的. 比方项目名称为"aven".那么公布 ...

随机推荐

  1. AWT01-体系概述

    1.概述 AWT(Abstract Window Toolkit),中文译为抽象窗口工具包,该包提供了一套与本地图形界面进行交互的接口,是Java提供的用来建立和设置Java的图形用户界面的基本工具. ...

  2. Spring @Scheduled Annotation

    1.Overview 这里我们将会学习Spring @Scheduled 标签,了解它是如何配置,如何设置定时任务. 关于它的使用,有两点简单的规则需要记住: ※它的方法应该是一个void返回值类型 ...

  3. Elastic Search 学习之路(三)—— tutorial demo

    一.ElasticSearch tutorial demo example 1. 单机.local.CRUD操作 实现方式: SpringBoot + ElasticSearch 拷贝的小demo,原 ...

  4. 移动端SCSS

    一.什么是SASS SASS是一种强化CSS的辅助工具,提供了许多便利的写法,大大节省了设计者的时间,使得CSS的开发,变得简单可维护. #二.安装和使用(VS Code中) #1.安装 下载扩展文件 ...

  5. Eureka系列(一)Eureka功能介绍

    Eureka核心功能点 服务注册(register):   Client会发送一次Rest请求给Server端来实现注册,Server接受到请求会将服务信息存储起来,并将注册信息给同集群其他Serve ...

  6. 学Python编程能做什么工作?从事什么岗位?——这些问题你知道吗?

    前言 学Python编程能做什么工作?随着人工智能发展,学习python语言的人员有更多的岗位机会,python从事的职业广泛,从游戏到AI人工智能能都可以用Python实现.除了编程,各种岗位的人都 ...

  7. 网络编程-python实现-TCP(1.1.3)

    @ 目录 1.TCP是什么 2.代码实现 1.TCP是什么 传输控制协议(TCP,Transmission Control Protocol)是一种面向连接的.可靠的.基于字节流的传输层通信协议,由I ...

  8. ActiveMq PUT任意文件上传漏洞(CVE-2016-3088)漏洞复现

    漏洞原理 该漏洞出现在fileserver应用中,ActiveMQ中的fileserver服务允许用户通过HTTP PUT方法上传文件到指定目录.Fileserver支持写入文件(不解析jsp),但是 ...

  9. python列表(九)元组

    元组 元组是不可变序列,元组一旦创建,用任何方法都不可以修改其元素. 元组的偶有元素是放在一对圆括号"()"中 1.元组创建与删除 使用"="讲一个元组赋值给变 ...

  10. [leetcode]450. Delete Node in a BST二叉搜索树删除节点

    二叉树变量只是一个地址 public static void main(String[] args) { TreeNode t = new TreeNode(3); help(t); System.o ...