@Lunix 命令成长记

Lunix 命令成长记

学习一写 Lunix 命令能够给咱们带来很大的方便,一步一步成长,向小时候查新华字典同样,使用了到学习到了,记录下来。咱们可能使用功能有限,使用功能区分不一样的命令。css

建立文件

touch 命令

Linux touch命令用于修改文件或者目录的时间属性,包括存取时间和更改时间。若文件不存在,系统会创建一个新的文件。html

$ touch index.js index.scss index.json index.wxml index.ts
复制代码

建立目录

mkdir 命令

$ mkdir src public pages components
复制代码

文件复制

cp 命令

$ cp -R ./demo-03/images ./public # 将 images 文件复制到public目录下
复制代码

删除命令

rm 文件夹、文件

$ rm -rf node_modules src component index.js
复制代码

列表

获取文件 ls

$ ls ./src
$ ll ./src
复制代码

切换

切换位置命令 cd

$ cd ./src/pages/index
$ touch index.json index.ts index.scss index.wxss
复制代码

参考

  1. 【touch 详解】https://www.cnblogs.com/Kingshuo/p/10840536.html
  2. [【Linux 中 cp 命令(文件复制)www.cnblogs.com/uncle-qi/p/…
相关文章
相关标签/搜索