Skip to content
Open
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pages.zh/common/2to3.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# 2to3

> 自动将 Python 2 代码转换成 Python 3.
> 自动将 Python 2 代码转换成 Python 3
> 自 3.11 起,该模块已被弃用,并自 3.13 起被移除。
> 参考请见:<https://github.com/python/cpython/blob/8d42e2d915c3096e7eac1c649751d1da567bb7c3/Doc/whatsnew/3.13.rst?plain=1#L188>.
> 更多信息:<https://manned.org/2to3>.
> 参考请见:<https://github.com/python/cpython/blob/8d42e2d915c3096e7eac1c649751d1da567bb7c3/Doc/whatsnew/3.13.rst?plain=1#L188>
> 更多信息:<https://manned.org/2to3>

- 显示将执行的变动但不执行(dry-run):

Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/ack.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ack

> 一个类似 grep 的搜索工具,为程序员优化。
> 另见 `rg`,它要快得多。
> 另请参阅:`rg`,它要快得多。
> 更多信息:<https://beyondgrep.com/documentation>.
- 在当前目录下递归地搜索包含一个字符串或正则表达式的文件:
Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/acme.sh.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# acme.sh

> 实现了 ACME 客户端协议的 shell 脚本,是 `certbot` 的替代品。
> 另见 `acme.sh dns`。
> 另请参阅:`acme.sh dns`。
> 更多信息:<https://github.com/acmesh-official/acme.sh#2-just-issue-a-cert>.

- 使用网站根目录模式签发证书:
Expand Down
4 changes: 2 additions & 2 deletions pages.zh/common/act.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# act

> 使用 Docker 本地运行 GitHub Actions.
> 更多信息:<https://manned.org/act>.
> 使用 Docker 本地运行 GitHub Actions
> 更多信息:<https://manned.org/act>

- 列出可用的 actions 清单:

Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/adb-disconnect.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# adb disconnect

> 该命令已移动到 `adb connect`.
> 该命令已移动到 `adb connect`

- 查看 `adb disconnect` 的文档:

Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/adb-logcat.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@

`adb logcat --pid $(adb shell pidof -s {{软件包}})`

- 给日志着色(通常与过滤器一起使用):
- 给日志着色(通常与过滤器一起使用)

`adb logcat -v color`
2 changes: 1 addition & 1 deletion pages.zh/common/adb-pair.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# adb pair

> 该命令已移动到 `adb connect`.
> 该命令已移动到 `adb connect`
- 查看 `adb pair` 的文档:

Expand Down
8 changes: 4 additions & 4 deletions pages.zh/common/adb-reboot.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
> 重启已连接的 Android 设备或模拟器。
> 更多信息:<https://manned.org/adb>.
- 正常重启设备:
- 正常重启设备

`adb reboot`

- 重启设备到引导加载程序模式:
- 重启设备到引导加载程序模式

`adb reboot bootloader`

- 重启设备到恢复模式:
- 重启设备到恢复模式

`adb reboot recovery`

- 重启设备到 fastboot 模式:
- 重启设备到 fastboot 模式

`adb reboot fastboot`
4 changes: 2 additions & 2 deletions pages.zh/common/adb.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# adb

> 安卓调试桥:与 Android 模拟器或已连接的 Android 设备通信。
> 此命令也有关于其子命令的文件,例如:`shell`.
> 更多信息:<https://developer.android.com/tools/adb>.
> 此命令也有关于其子命令的文件,例如:`shell`
> 更多信息:<https://developer.android.com/tools/adb>

- 检查 adb server 进程的是否在运行,并开启它:

Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/age-keygen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# age-keygen

> 生成 `age` 密钥对。
> 参见:`age` 用于加密/解密文件。
> 另请参阅:`age` 用于加密/解密文件。
> 更多信息:<https://manned.org/age-keygen>.

- 生成密钥对,将其保存到未加密文件,并将公钥打印到标准输出:
Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/age.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# age

> 一个简单、现代、安全的文件加密工具。
> 参见:`age-keygen` 用于生成密钥对。
> 另请参阅:`age-keygen` 用于生成密钥对。
> 更多信息:<https://github.com/FiloSottile/age#usage>.

- 生成一个可以用密码短语(passphrase)解密的加密文件:
Expand Down
4 changes: 2 additions & 2 deletions pages.zh/common/amass.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# amass

> 深度攻击面探测与资产发现工具。
> 此命令也有关于其子命令的文件,例如:`intel`.
> 更多信息:<https://github.com/owasp-amass/amass>.
> 此命令也有关于其子命令的文件,例如:`intel`
> 更多信息:<https://github.com/owasp-amass/amass>

- 执行 Amass 子命令:

Expand Down
4 changes: 2 additions & 2 deletions pages.zh/common/ansible.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# ansible

> 通过 SSH 协议远程管理计算机组。使用 `/etc/ansible/hosts` 文件来添加组 / 主机。
> 此命令也有关于其子命令的文件,例如:`galaxy`.
> 更多信息:<https://docs.ansible.com/ansible/latest/cli/ansible.html>.
> 此命令也有关于其子命令的文件,例如:`galaxy`
> 更多信息:<https://docs.ansible.com/ansible/latest/cli/ansible.html>

- 列出给定组下的所有主机:

Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/apm.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# apm

> Atom 编辑器的包管理工具。
> 参见 `atom`.
> 另请参阅:`atom`
> 更多信息:<https://github.com/atom/apm>.
- 下载包:<http://atom.io/packages> 和主题 <http://atom.io/themes>
Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/arduino.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

`arduino --pref build.path={{路径/到/输出_文件夹}} --verify {{路径/到/文件.ino}}`

- 保存任意(修改过的)首选项到 `preferences.txt`:
- 保存任意(修改过的)首选项到 `preferences.txt`

`arduino --save-prefs`

Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/arthas-trace.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# arthas-trace

> 方法内部调用路径,并输出方法路径上的每个节点上耗时。
> 另见 `arthas`, `arthas-watch`.
> 另请参阅:`arthas``arthas-watch`
> 更多信息:<https://arthas.aliyun.com/en/doc/trace.html>.

- 追踪方法调用链:
Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/arthas-watch.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# arthas-watch

> 函数执行数据观测。
> 另见 `arthas`, `arthas-trace`.
> 另请参阅:`arthas``arthas-trace`
> 更多信息:<https://arthas.aliyun.com/en/doc/watch.html>.
- 在方法调用后观察,显示第一个参数和返回值,展开嵌套对象的 4 层:
Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/arthas.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# arthas

> Java 应用诊断利器。
> 另见 `arthas-watch`, `arthas-trace`.
> 另请参阅:`arthas-watch``arthas-trace`
> 更多信息:<https://arthas.aliyun.com/en/>.

- 启动 arthas:
Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/asciinema.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# asciinema

> 录制和回放终端会话,并可选分享到 <https://asciinema.org>。
> 另见:`terminalizer`。
> 另请参阅:`terminalizer`。
> 更多信息:<https://docs.asciinema.org/manual/cli/>.

- 将本地安装的 `asciinema` 与 asciinema.org 账号关联:
Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/atuin.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
> 可选择在机器之间同步加密历史记录。
> 更多信息:<https://docs.atuin.sh/>.

- 安装 atuin 到您的 shell:
- 安装 atuin 到您的 shell

`eval "$(atuin init {{bash|zsh|fish}})"`

Expand Down
4 changes: 2 additions & 2 deletions pages.zh/common/axel.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# axel

> 一款下载加速器。
> 支持 HTTP、HTTPS 和 FTP.
> 更多信息:<https://manned.org/axel>.
> 支持 HTTP、HTTPS 和 FTP
> 更多信息:<https://manned.org/axel>

- 链接下载:

Expand Down
4 changes: 2 additions & 2 deletions pages.zh/common/brew-install.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# brew install

> 安装一个 Homebrew 软件包 (formula),或安装包 (cask).
> 更多信息:<https://docs.brew.sh/Manpage#install-options-formulacask->.
> 安装一个 Homebrew 软件包 (formula),或安装包 (cask)
> 更多信息:<https://docs.brew.sh/Manpage#install-options-formulacask->

- 安装软件包/安装包:

Expand Down
4 changes: 2 additions & 2 deletions pages.zh/common/brew.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# brew

> Homebrew - 一个 macOS 和 Linux 的包管理器。
> 此命令也有关于其子命令的文件,例如:`install`.
> 更多信息:<https://docs.brew.sh/Manpage>.
> 此命令也有关于其子命令的文件,例如:`install`
> 更多信息:<https://docs.brew.sh/Manpage>

- 安装最新稳定版本的软件包或安装包:

Expand Down
8 changes: 4 additions & 4 deletions pages.zh/common/btop.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
> `bpytop` 的 C++ 版本。
> 更多信息:<https://github.com/aristocratos/btop#command-line-options>.

- 启动 `btop`:
- 启动 `btop`

`btop`

- 使用指定预设启动 `btop`:
- 使用指定预设启动 `btop`

`btop {{[-p|--preset]}} {{0..9}}`

- 使用 16 种颜色和 TTY 友好的图形符号在 TTY 模式下启动 `btop`:
- 使用 16 种颜色和 TTY 友好的图形符号在 TTY 模式下启动 `btop`

`btop {{[-t|--tty]}}`

- 在 256 色模式而不是 24 位颜色模式下启动 `btop`:
- 在 256 色模式而不是 24 位颜色模式下启动 `btop`

`btop {{[-l|--low-color]}}`

Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/cargo-rustdoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

`cargo rustdoc -- --warn rustdoc::{{lint_name}}`

- 忽略文档 lint:
- 忽略文档 lint

`cargo rustdoc -- --allow rustdoc::{{lint_name}}`

Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/clang.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

`clang {{[-c|--compile]}} {{源/文件/的路径1.c 源/文件/的路径2.c...}}`

- 优化编译后程序的性能:
- 优化编译后程序的性能

`clang {{源/文件/的路径.c}} -O{{1|2|3|fast}} {{[-o|--output]}} {{可执行/文件/的路径}}`

Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/cron.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# cron

> 一个系统任务计划程序,用于无人值守运行工作或任务。
> 提交、修改或删除 `cron` 任务条目的命令,是 `crontab`.
> 提交、修改或删除 `cron` 任务条目的命令,是 `crontab`

- 查看管理 `cron` 条目的文档:

Expand Down
4 changes: 2 additions & 2 deletions pages.zh/common/curl.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# curl

> 向 / 从一个服务器传输数据。
> 支持大多数协议,包括 HTTP, FTP, 和 POP3.
> 更多信息:<https://curl.se/docs/manpage.html>.
> 支持大多数协议,包括 HTTP, FTP, 和 POP3
> 更多信息:<https://curl.se/docs/manpage.html>
- 将指定 URL 的内容下载到文件:

Expand Down
2 changes: 1 addition & 1 deletion pages.zh/common/direnv.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> Shell 扩展为加载和卸载环境变量,具体取决于当前目录。
> 更多信息:<https://github.com/direnv/direnv/blob/master/man/direnv.1.md>.

- 授予 direnv 当前目录中加载 `.envrc`:
- 授予 direnv 当前目录中加载 `.envrc`

`direnv allow {{.}}`

Expand Down
4 changes: 2 additions & 2 deletions pages.zh/common/distcc.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# distcc

> 与 `distccd` 搭配使用的分布式 C/C++/ObjC 编译客户端.
> 更多信息:<https://manned.org/distcc>.
> 与 `distccd` 搭配使用的分布式 C/C++/ObjC 编译客户端
> 更多信息:<https://manned.org/distcc>

- 使用类似 `gcc` 的编译器编译源文件:

Expand Down
4 changes: 2 additions & 2 deletions pages.zh/common/docker-image.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# docker image

> 管理 Docker 镜像。
> 也请参阅`docker build`, `docker import`, `docker pull`.
> 更多信息:<https://docs.docker.com/reference/cli/docker/image/>.
> 另请参阅`docker build``docker import``docker pull`
> 更多信息:<https://docs.docker.com/reference/cli/docker/image/>
- 列出本地的 Docker 镜像:

Expand Down
4 changes: 2 additions & 2 deletions pages.zh/common/docker.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# docker

> 管理 Docker 容器和镜像。
> 此命令也有关于其子命令的文件,例如:`run`.
> 更多信息:<https://docs.docker.com/reference/cli/docker/>.
> 此命令也有关于其子命令的文件,例如:`run`
> 更多信息:<https://docs.docker.com/reference/cli/docker/>
- 列出所有 Docker 容器(包括停止的容器):

Expand Down
4 changes: 2 additions & 2 deletions pages.zh/common/eim.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# eim

> 安装和管理 ESP-IDF.
> 更多信息:<https://docs.espressif.com/projects/idf-im-ui/en/latest/cli_commands.html>.
> 安装和管理 ESP-IDF
> 更多信息:<https://docs.espressif.com/projects/idf-im-ui/en/latest/cli_commands.html>

- 在默认位置(Windows 上为 `C:\esp`,POSIX 系统上为 `~/.espressif`)安装默认(最新)的 ESP-IDF 版本:

Expand Down
14 changes: 7 additions & 7 deletions pages.zh/common/fzf.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
# fzf

> 命令行模糊查找器。
> 类似于 `sk`.
> 更多信息:<https://github.com/junegunn/fzf#usage>.
> 类似于 `sk`
> 更多信息:<https://github.com/junegunn/fzf#usage>

- 对指定目录中的所有文件启动 `fzf`:
- 对指定目录中的所有文件启动 `fzf`

`find {{路径/到/目录}} -type f | fzf`

- 为正在运行的进程启动 `fzf`:
- 为正在运行的进程启动 `fzf`

`ps aux | fzf`

- 使用 `<Shift Tab>` 选择多个文件并将结果写入文件:

`find {{路径/到/目录}} -type f | fzf {{[-m|--multi]}} > {{路径/到/文件}}`

- 使用指定查询词启动 `fzf`:
- 使用指定查询词启动 `fzf`

`fzf {{[-q|--query]}} "{{查询词}}"`

- 对以 core 开头、以 go, rb 或 py 结尾的条目启动 `fzf`:
- 对以 core 开头、以 go, rb 或 py 结尾的条目启动 `fzf`

`fzf {{[-q|--query]}} "^core go$ | rb$ | py$"`

- 对不匹配 pyc 且完全匹配 travis 的条目启动 `fzf`:
- 对不匹配 pyc 且完全匹配 travis 的条目启动 `fzf`

`fzf {{[-q|--query]}} "!pyc 'travis"`
4 changes: 2 additions & 2 deletions pages.zh/common/gh-gist.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# gh gist

> 在命令行上使用 GitHub Gists.
> 更多信息:<https://cli.github.com/manual/gh_gist>.
> 在命令行上使用 GitHub Gists
> 更多信息:<https://cli.github.com/manual/gh_gist>

- 从一个以空格分隔的文件列表中创建一个新的 Gist:

Expand Down
Loading
Loading