update some cmds

This commit is contained in:
shzhxh 2019-11-29 15:43:25 +08:00
parent 1860187eea
commit 5f7cf98270
5 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,6 @@
```
continue [n] # 继续进行下次循环(for, while, until)
# n : 继续第n个循环
# 返回值如N大于1返回0,否则返回非0.
```

View File

@ -5,6 +5,7 @@
#### 语法
```
git branch [options] [patterns]
git branch <--track | --no-track> [-l] [-f] <branchname> [start-point]
git branch <--set-upstream-to=upstream> [branchname] # 指定branchname追踪远程分支upstream
@ -14,6 +15,8 @@ git branch <-m | -M> [oldbranch] <newbranch> # 移动或重命名分支
git branch <-c | -C> [oldbranch] <newbranch> # 复制分支
git branch <-d | -D> [-r] <branchname>... # 删除分支
git branch <--edit-description> [branchname]
# branchname : 要创建或删除的分支名
# start-point: 新分支将要指向的提交点
# oldbranch : 已存在分支的名称,此分支将被重命名
@ -37,5 +40,6 @@ git branch <-d | -D> [-r] <branchname>... # 删除分支
-u <upstream>, --set-upstream-to <upstream>
# 将upstream指定为branchname的远程分支。如不指定branchname则将upstream指定为当前分支的远程分支。
--unset-upstream # 删除对远程分支的追踪。如不指定分支则删除当前分支对远程分支的追踪。
-v, -vv, --verbose # -v和--verbose作用相同显示每个本地分支的名称、sha1、HEAD的提交信息。-vv则会增加显示本地分支对应的远程分支。
```

25
Software/nbd.md Normal file
View File

@ -0,0 +1,25 @@
#### 安装
```
sudo pacman -S nbd
cd /lib/modules/5.3.11-1-MANJARO/kernel/drivers/block
xz -z nbd.ko
sudo modprobe nbd
```
#### nbd-server
```
nbd-server [ip@]port <filename> [size] [options] # 把文件当作块设备
```
#### nbd-client
```
nbd-client <host> [port] <nbd-device> [options]
nbd-client <-unix> <path> <nbd-device> [options]
ndb-client [-d | -c] nbd-device
nbd-client -l <host> [port]
nbd-client [-netlink] -l <host>
```

View File

@ -1,6 +1,6 @@
- df作用报告文件系统对磁盘空间的占用情况
- 语法:`df [option] [file]`
- 语法:`df [options] [files]`
- 选项:
@ -10,6 +10,7 @@
-h, --human-readable # 以1024的倍数来显示sizes
-H, --si # 以1000的倍数来显示sizes
-k # 相当于--block-size=1K
-l, --local # 仅显示本地文件系统
-m # 相当于--block-size=1M
-T, --print-type # 打印文件系统类型