add some cmds
This commit is contained in:
parent
6f7aaab684
commit
54227e2b56
|
@ -65,6 +65,8 @@ $ # 变量参数
|
||||||
|
|
||||||
# 逻辑运算
|
# 逻辑运算
|
||||||
-a且,-o或,&&且, ||或
|
-a且,-o或,&&且, ||或
|
||||||
|
# -a或-o用在[]里
|
||||||
|
# &&或||用在[[]]里
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 条件控制
|
#### 条件控制
|
||||||
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
#### 简介
|
||||||
|
|
||||||
|
建立基本的debian系统。
|
||||||
|
|
||||||
|
```bash
|
||||||
|
debootstrap [options] <suite> <target> [mirror [script]]
|
||||||
|
# suite : debian的版本号,可以是释放代码的名字(如sid, stretch, jessie)或符号名(如unstable, testing, stable, oldstable)
|
||||||
|
# target : 安装debian的目录
|
||||||
|
# mirror : debian的镜像源
|
||||||
|
# script : 安装脚本
|
||||||
|
debootstrap [options] --second-stage # 完成创建过程
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 选项
|
||||||
|
|
||||||
|
```
|
||||||
|
--arch=<ARCH> #
|
||||||
|
--include=<alpha, beta> #
|
||||||
|
--exclude
|
||||||
|
--components
|
||||||
|
--no-check-gpg # 不检查gpg签名
|
||||||
|
--no-resolve-deps
|
||||||
|
--variant=
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
#### 示例
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 创建riscv64的chroot环境
|
||||||
|
sudo apt-get install debootstrap qemu-user-static binfmt-support debian-ports-archive-keyring
|
||||||
|
sudo debootstrap --arch=riscv64 --keyring /usr/share/keyrings/debian-ports-archive-keyring.gpg --include=debian-ports-archive-keyring unstable /tmp/riscv64-chroot http://deb.debian.org/debian-ports
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#### 错误解决
|
||||||
|
|
||||||
|
##### 1 Cannot check Release signature
|
||||||
|
|
||||||
|
使用`--no-check-gpg`选项,不检查gpg签名
|
||||||
|
|
||||||
|
##### 2 Failed getting release file
|
|
@ -0,0 +1,6 @@
|
||||||
|
```
|
||||||
|
complete [options] [names] # 对于每个name,定义参数补全的方式。
|
||||||
|
-F <function> # 通过执行函数生成补全内容
|
||||||
|
-o <option> # 如果定义的补全规则没有匹配成功,则使用此选项给出的补全规则
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue