zoukankan      html  css  js  c++  java
  • Linux 常用命令三 touch mkdir

    一、touch命令

    创建一个文件:

    wang@wang:~/workpalce/python$ ls
    wang@wang:~/workpalce/python$ touch 1.txt
    wang@wang:~/workpalce/python$ ls
    1.txt

    创建多个文件:

    wang@wang:~/workpalce/python$ touch 1.txt 2.txt 3.txt
    wang@wang:~/workpalce/python$ ls
    1.txt  2.txt  3.txt

    二、mkdir命令

    创建单级目录:

    wang@wang:~/workpalce/python$ mkdir A
    wang@wang:~/workpalce/python$ ls
    1.txt  2.txt  3.txt  A

    创建多级目录:

    wang@wang:~/workpalce/python$ mkdir A/B/C/D/E -p
    wang@wang:~/workpalce/python$ tree
    .
    ├── 1.txt
    ├── 2.txt
    ├── 3.txt
    └── A
        └── B
            └── C
                └── D
                    └── E
    
    5 directories, 3 files

    -p 选项是指定递归创建目录

  • 相关阅读:
    DNS原理入门
    软件架构入门
    熵:宇宙的终极规则
    新鲜事
    加密货币的本质
    汇编语言入门教程
    HTML & CSS
    [模板] 矩阵快速幂
    [模板] 三分
    [模板] 2-SAT 问题
  • 原文地址:https://www.cnblogs.com/gundan/p/8056492.html
Copyright © 2011-2022 走看看