whereis, xar, yank: move to common (#6552)

This commit is contained in:
marchersimon
2021-09-19 02:59:20 +02:00
committed by GitHub
parent 0e7393b78f
commit e94e6af882
9 changed files with 0 additions and 54 deletions

View File

@@ -0,0 +1,19 @@
# whereis
> 找到命令的二进制,源文件和手册文件。
- 找到 `ssh` 命令的二进制、源文件和手册页:
`whereis {{ssh}}`
- 查找 `ls` 命令的二进制和手册页:
`whereis -bm {{ls}}`
- 找到 `gc` 的源文件和 `git` 的手册页:
`whereis -s {{gcc}} -m {{git}}`
- 仅在 /usr/bin/ 目录中查找 `gcc` 的二进制文件:
`whereis -b -B {{/usr/bin/}} -f {{gcc}}`

19
pages.zh/common/yank.md Normal file
View File

@@ -0,0 +1,19 @@
# yank
> 从 stdin 读取输入并显示一个选择界面,该界面允许选择一个字段并将其复制到剪贴板。
- 使用默认分隔符(\f, \n, \r, \s, \t
`{{sudo dmesg}} | yank`
- 输入单行:
`{{sudo dmesg}} | yank -l`
- 使用特定分 `=` 隔符输入:
`{{echo hello=world}} | yank -d {{=}}`
- 只有与特定正则表达式匹配的内容才输入:
`{{ps ux}} | yank -g "{{[0-9]+}}"`