From 0c54dc042479a3c43608855eafa353ef5301a19e Mon Sep 17 00:00:00 2001 From: shzhxh Date: Fri, 10 Jan 2020 15:27:43 +0800 Subject: [PATCH] update some cmds --- Hardware/hikey970.md | 14 +++++++ Software/docker.md | 19 ++++++++- Software/repo.md | 75 ++++++++++++++++++++++++++---------- Software/进程管理/top.md | 8 ++++ 4 files changed, 94 insertions(+), 22 deletions(-) create mode 100644 Hardware/hikey970.md diff --git a/Hardware/hikey970.md b/Hardware/hikey970.md new file mode 100644 index 0000000..f75777a --- /dev/null +++ b/Hardware/hikey970.md @@ -0,0 +1,14 @@ +##### 启动开关 + +| | SW2402 | ON | OFF | +| ---- | ---------- | ------------------------ | ---------------- | +| 1 | AUTO_POWER | 加电时自动启动 | 按下电源键才启动 | +| 2 | BOOT_MODE | 通过OTG烧写flash | 从flash正常启动 | +| 3 | EXT_BOOT | UEFI模式 | SOC模式 | +| 4 | I2S_SEL | I2S0连接到低速扩展连接器 | I2S0连接到蓝牙 | + + + +#### 参考资料 + +- [hikey970_documentation](https://www.96boards.org/documentation/consumer/hikey/hikey970/) \ No newline at end of file diff --git a/Software/docker.md b/Software/docker.md index cb474b5..f187356 100644 --- a/Software/docker.md +++ b/Software/docker.md @@ -85,7 +85,7 @@ docker container # 管理容器 # 命令 attach commit - cp + cp # 详见docker cp create # 详见docker create diff exec @@ -138,7 +138,6 @@ docker image # 管理镜像 ``` build # 从Dockerfile创建一个镜像。 commit # 从容器创建一个镜像。 -cp diff events export # 将一个容器文件系统输出为压缩文件。 @@ -182,6 +181,22 @@ docker attach [options] CONTAINER # 连接到运行中的容器 --sig-proxy ``` +##### cp + +``` +# 是docker container cp的别名 +# 注:docker里的路径要使用绝对路径 +docker cp [options] : # 从容器复制到本地 +docker cp [options] <>container>:<>dest_path> # 从本地复制到容器 + +# 选项 +-a, --archive[=false] # archieve模式(复制所有的uid/gid信息) +-L, --follow-link[=false] # 复制里的符号链接 +-h, --help[=false] # 帮助信息 +``` + + + ##### create ``` diff --git a/Software/repo.md b/Software/repo.md index 5962391..0784fa8 100644 --- a/Software/repo.md +++ b/Software/repo.md @@ -10,24 +10,6 @@ 其设计思想是新建一个仓库来管理要管理的仓库,这个仓库就是manifest仓库,它位于 `.repo`文件夹里。 -所有仓库的信息都放在manifest仓库的xml文件里,其各节点的意义如下: - -- remote:远程仓库地址 - - name:名字,alias:别名,fetch:仓库地址前缀,revision:默认分支 - -- project:子仓库 - - path:子仓库路径,name:子仓库名称,group:分组,revison:分支名,clone-depth:git克隆的深度 - -- copyfile:project的子节点 - - src:project的相对路径,dest:仓库的相对路径 - -- linkfile:project的子节点,类似copyfile,只是把复制文件变为创建链接文件。 - -- default:project没有设置时会使用默认配置。 - #### 语法 `repo [command] [options]` @@ -72,7 +54,8 @@ stage # 把文件添加到暂存区中 start # 开始一个新的开发分支 status # 显示工作树的状态 sync # 将工作树更新到最新版本 - -f # 即使某些项目同步失败,也会继续同步其它项目 + -f, --force-broken # 即使某些项目同步失败,也会继续同步其它项目 + --force-sync # 覆盖已存在的git目录(影响的是.repo/projects目录下的工作树) -j JOBS # 同步下载的JOBS个项目,默认下载4个 upload # 把代码提交到gerrit code review中 viersion # 显示repo的版本 @@ -114,7 +97,59 @@ ls .repo # 查看.repo目录 解决方法:清空整个工作区,重新reop sync 原因分析:删除出错的仓库都无效,删除整个工作区才有效,无法理解此问题 - +#### manifest.xml的格式 + +所有仓库的信息都放在manifest仓库的xml文件里,其各节点的意义如下: + +- **annotation** + +- **copyfile**:project的子节点 + + src:project的相对路径, + + dest:仓库的相对路径 + +- **default**:project没有设置时会使用默认配置。 + +- **extend-project** + +- **include** + +- **linkfile**:project的子节点,类似copyfile,只是把复制文件变为创建链接文件。 + +- **manifest** + +- **manifest-server** + +- **project**:子仓库 + + path:子仓库路径, + + name:子仓库名称, + + group:本项目所属的组, + + revison:分支名, + + clone-depth:git克隆的深度 + +- **remote**:远程仓库地址 + + name:名字, + + alias:别名, + + fetch:仓库地址前缀, + + revision:默认分支 + +- **remove-project** + + 删除指定的项目(project),这样同一manifest文件后续的项目就可以用不同的源(source)来替换这个项目了。这在本地的manifest文件里是很有用的,这样用户就可以用自己定义的项目来替代原有的项目了。 + +#### 参考文档 + +- [manifest-format](https://gerrit.googlesource.com/git-repo/+/refs/heads/master/docs/manifest-format.md) diff --git a/Software/进程管理/top.md b/Software/进程管理/top.md index 7de7375..68bb009 100644 --- a/Software/进程管理/top.md +++ b/Software/进程管理/top.md @@ -22,6 +22,14 @@ top [options] # 显示进程 #### 3. 字段和列的显示 +``` +# 字段管理按f或F +``` + + + + + #### 4. 交互命令 #### 5. 交替显示的规则