add some coms

This commit is contained in:
shzhxh 2019-08-19 10:38:56 +08:00
parent 2641b52ed1
commit 6dc507e4c2
4 changed files with 22 additions and 3 deletions

View File

@ -62,6 +62,8 @@ pm disable <package> # 使package不可用
pm enable <package> # 使package可用
pm clear <package> # 删除package的所有数据
pm install # 安装软件
pm list package # 打印已安装包的名称
-3 # 只显示第3方包的名称
pm uninstall # 卸载软件
-k # 卸载后保留数据和缓存目录
```

View File

@ -5,3 +5,10 @@ git merge --abort # 当合并出现冲突后,终止合并的进程并尝试
git merge --continue # 当合并出现冲突并解决完冲突后,可以用此命令继续完成合并
```
#### 选项
```
--ff # fast-forward只更新分支指针不创建合并提交。这是默认行为。
--no-ff # 创建合并提交。
```

View File

@ -24,3 +24,11 @@ cut <-b | -c | -f> [options] [files]
-M # 从行首到M
```
#### 示例
```
cut -b 3-5 file # 显示文件file里每行的第3到第5个字节
cut -c 3 file # 显示文件file里每行的第3个字符
cut -d ' ' -f 2 file # 显示文件file里每行的第2个域域之间以空格为分隔符
```

View File

@ -1,8 +1,6 @@
#### 简介
* 来源:[runoob.com](http://www.runoob.com/linux/linux-comm-sed.html)
* 用于文本过滤和转换的流编辑器(Stream Editor)。
用于文本过滤和转换的流编辑器(Stream Editor)。流编辑器是对输入流(文件或管道)进行基本的文本转换。
#### 用法
@ -55,3 +53,7 @@ sed -i "s/oldstr/newstr/g" `grep oldstr -rl path`
#
sed -n 's/ magicmagicmagic/ /p' file1 > file2
```
#### 参考文档
- [runoob.com](http://www.runoob.com/linux/linux-comm-sed.html)