add new chinese translations
This commit is contained in:
@@ -1,20 +1,20 @@
|
||||
# am
|
||||
|
||||
> Android 活动管理器。
|
||||
> 更多信息:<https://developer.android.com/tools/adb#am>.
|
||||
> 更多信息:<https://developer.android.com/tools/adb#am>。
|
||||
|
||||
- 启动一个指定的活动:
|
||||
- 使用特定组件和包 [n]ame 启动活动:
|
||||
|
||||
`am start -n {{com.android.settings/.Settings}}`
|
||||
|
||||
- 启动一个活动并将数据传递给它:
|
||||
- 启动一个意图 [a]ction 并传递 [d]ata:
|
||||
|
||||
`am start -a {{android.intent.action.VIEW}} -d {{tel:123}}`
|
||||
|
||||
- 启动与特定操作和类别匹配的活动:
|
||||
- 启动与特定意图和 [c]ategory 匹配的活动:
|
||||
|
||||
`am start -a {{android.intent.action.MAIN}} -c {{android.intent.category.HOME}}`
|
||||
|
||||
- 将意图转换为 URI:
|
||||
|
||||
`am to-uri -a {{android.intent.action.VIEW}} -d {{tel:123}}`
|
||||
`am to-uri -a {{android.intent.action.VIEW}} -d {{tel:123}}`
|
@@ -1,9 +1,9 @@
|
||||
# bugreport
|
||||
# 错误报告
|
||||
|
||||
> 显示安卓的 Bug 报告。
|
||||
> 该命令只能通过 `adb shell` 使用。
|
||||
> 更多信息:<https://cs.android.com/android/platform/superproject/+/main:frameworks/native/cmds/bugreport>.
|
||||
> 显示 Android 错误报告。
|
||||
> 此命令只能通过 `adb shell` 使用。
|
||||
> 更多信息:<https://cs.android.com/android/platform/superproject/+/main:frameworks/native/cmds/bugreport>。
|
||||
|
||||
- 显示 Android 设备的完整错误报告:
|
||||
|
||||
`bugreport`
|
||||
`bugreport`
|
@@ -1,10 +1,10 @@
|
||||
# bugreportz
|
||||
|
||||
> 生成一个压缩的 Android 错误报告。
|
||||
> 生成一个压缩的Android错误报告。
|
||||
> 此命令只能通过 `adb shell` 使用。
|
||||
> 更多信息:<https://cs.android.com/android/platform/superproject/+/main:frameworks/native/cmds/bugreportz>.
|
||||
> 更多信息:<https://cs.android.com/android/platform/superproject/+/main:frameworks/native/cmds/bugreportz>。
|
||||
|
||||
- 生成一个完整的 Android 设备压缩错误报告:
|
||||
- 生成Android设备的完整压缩错误报告:
|
||||
|
||||
`bugreportz`
|
||||
|
||||
@@ -12,14 +12,14 @@
|
||||
|
||||
`bugreportz -p`
|
||||
|
||||
- 将 Android 错误报告的内容写入 `stdout`:
|
||||
- 将Android错误报告的内容写入 `stdout`:
|
||||
|
||||
`bugreportz -s`
|
||||
|
||||
- 显示帮助:
|
||||
- 显示帮助信息:
|
||||
|
||||
`bugreportz -h`
|
||||
|
||||
- 显示版本:
|
||||
- 显示版本信息:
|
||||
|
||||
`bugreportz -v`
|
||||
`bugreportz -v`
|
@@ -3,14 +3,14 @@
|
||||
> Android 服务管理器。
|
||||
> 更多信息:<https://cs.android.com/android/platform/superproject/+/main:frameworks/native/cmds/cmd/>.
|
||||
|
||||
- 列出所有正在运行的服务:
|
||||
- [l]列出所有正在运行的服务:
|
||||
|
||||
`cmd -l`
|
||||
|
||||
- 调用指定服务:
|
||||
- 调用特定服务:
|
||||
|
||||
`cmd {{alarm}}`
|
||||
`cmd {{service}}`
|
||||
|
||||
- 调用服务同时传递参数:
|
||||
- 带特定参数调用服务:
|
||||
|
||||
`cmd {{vibrator}} {{vibrate 300}}`
|
||||
`cmd {{service}} {{argument1 argument2 ...}}`
|
@@ -1,8 +1,8 @@
|
||||
# dalvikvm
|
||||
|
||||
> Android Java 虚拟机。
|
||||
> 更多信息:<https://source.android.com/docs/core/runtime>.
|
||||
> 更多信息:<https://source.android.com/docs/core/runtime>。
|
||||
|
||||
- 启动一个 Java 程序:
|
||||
- 启动一个特定的 Java 程序:
|
||||
|
||||
`dalvikvm -classpath {{path/to/file.jar}} {{classname}}`
|
||||
`dalvikvm -classpath {{path/to/file.jar}} {{classname}}`
|
@@ -1,29 +1,29 @@
|
||||
# dumpsys
|
||||
|
||||
> 提供关于 Android 系统服务的信息。
|
||||
> 此命令只能通过 `adb shell` 使用。
|
||||
> 更多信息:<https://developer.android.com/tools/dumpsys>.
|
||||
> 获取关于Android系统服务的信息。
|
||||
> 此命令只能通过`adb shell`使用。
|
||||
> 更多信息:<https://developer.android.com/tools/dumpsys>。
|
||||
|
||||
- 获取所有系统服务的诊断输出:
|
||||
|
||||
`dumpsys`
|
||||
|
||||
- 获取指定系统服务的诊断输出:
|
||||
- 获取特定系统服务的诊断输出:
|
||||
|
||||
`dumpsys {{服务}}`
|
||||
`dumpsys {{service}}`
|
||||
|
||||
- 列出 `dumpsys` 可以提供的所有服务信息:
|
||||
- 列出`dumpsys`可以提供信息的所有服务:
|
||||
|
||||
`dumpsys -l`
|
||||
|
||||
- 列出服务的指定服务参数:
|
||||
- 列出特定服务的服务参数:
|
||||
|
||||
`dumpsys {{服务}} -h`
|
||||
`dumpsys {{service}} -h`
|
||||
|
||||
- 从诊断输出中排除指定服务:
|
||||
- 从诊断输出中排除特定服务:
|
||||
|
||||
`dumpsys --skip {{服务}}`
|
||||
`dumpsys --skip {{service}}`
|
||||
|
||||
- 指定超时时间,以秒为单位(默认为 10s):
|
||||
- 指定超时时间(单位:秒,默认为10秒):
|
||||
|
||||
`dumpsys -t {{秒数}}`
|
||||
`dumpsys -t {{8}}`
|
@@ -1,15 +1,15 @@
|
||||
# getprop
|
||||
|
||||
> 显示关于 Android 系统属性的信息。
|
||||
> 更多信息:<https://manned.org/getprop>.
|
||||
> 显示有关 Android 系统属性的信息。
|
||||
> 更多信息:<https://manned.org/getprop>。
|
||||
|
||||
- 显示关于 Android 系统属性的信息:
|
||||
- 显示有关 Android 系统属性的信息:
|
||||
|
||||
`getprop`
|
||||
|
||||
- 显示关于指定属性的信息:
|
||||
- 显示特定属性的信息:
|
||||
|
||||
`getprop {{prop}}`
|
||||
`getprop {{property}}`
|
||||
|
||||
- 显示 SDK API 级别:
|
||||
|
||||
@@ -27,6 +27,6 @@
|
||||
|
||||
`getprop {{ro.oem_unlock_supported}}`
|
||||
|
||||
- 显示 Android WiFi 卡的 MAC 地址:
|
||||
- 显示 Android Wi-Fi 卡的 MAC 地址:
|
||||
|
||||
`getprop {{ro.boot.wifimacaddr}}`
|
||||
`getprop {{ro.boot.wifimacaddr}}`
|
@@ -1,25 +1,25 @@
|
||||
# input
|
||||
# 输入
|
||||
|
||||
> 将事件代码或触摸屏手势发送到 Android 设备。
|
||||
> 此命令只能通过 `adb shell` 使用。
|
||||
> 更多信息:<https://developer.android.com/reference/android/view/KeyEvent.html#constants_1>.
|
||||
> 更多信息:<https://developer.android.com/reference/android/view/KeyEvent.html#constants_1>。
|
||||
|
||||
- 将单个字符的事件代码发送到 Android 设备:
|
||||
|
||||
`input keyevent {{event_code}}`
|
||||
|
||||
- 将文本发送到 Android 设备(`%s` 代表空格):
|
||||
- 向 Android 设备发送文本(`%s` 代表空格):
|
||||
|
||||
`input text "{{text}}"`
|
||||
|
||||
- 将轻触发送到 Android 设备:
|
||||
- 向 Android 设备发送单次点击:
|
||||
|
||||
`input tap {{x_pos}} {{y_pos}}`
|
||||
`input tap {{x_position}} {{y_position}}`
|
||||
|
||||
- 将滑动手势发送到 Android 设备:
|
||||
- 向 Android 设备发送滑动手势:
|
||||
|
||||
`input swipe {{x_start}} {{y_start}} {{x_end}} {{y_end}} {{duration_in_ms}}`
|
||||
|
||||
- 使用滑动手势将长按发送到 Android 设备:
|
||||
- 使用滑动手势向 Android 设备发送长按:
|
||||
|
||||
`input swipe {{x_pos}} {{y_pos}} {{x_pos}} {{y_pos}} {{duration_in_ms}}`
|
||||
`input swipe {{x_position}} {{y_position}} {{x_position}} {{y_position}} {{duration_in_ms}}`
|
@@ -1,24 +1,24 @@
|
||||
# logcat
|
||||
# 日志输出
|
||||
|
||||
> 转储系统消息日志,包括发生错误时的堆栈跟踪信息,以及应用程序记录的信息消息。
|
||||
> 更多信息:<https://developer.android.com/tools/logcat>.
|
||||
> 转储系统消息的日志,包括发生错误时的堆栈跟踪,以及应用程序记录的信息消息。
|
||||
> 更多信息:<https://developer.android.com/tools/logcat>。
|
||||
|
||||
- 显示系统日志:
|
||||
|
||||
`logcat`
|
||||
|
||||
- 将系统日志写入文件([f]ile):
|
||||
- 将系统日志写入一个[f]ile:
|
||||
|
||||
`logcat -f {{路径/到/文件}}`
|
||||
`logcat -f {{path/to/file}}`
|
||||
|
||||
- 显示与正则表达式匹配的日志行:
|
||||
- 显示匹配正则表达式的行:
|
||||
|
||||
`logcat --regex {{正则表达式}}`
|
||||
`logcat --regex {{regular_expression}}`
|
||||
|
||||
- 显示特定 PID 的日志:
|
||||
- 显示特定PID的日志:
|
||||
|
||||
`logcat --pid {{pid}}`
|
||||
|
||||
- 显示特定包的进程日志:
|
||||
|
||||
`logcat --pid $(pidof -s {{包}})`
|
||||
`logcat --pid $(pidof -s {{package}})`
|
@@ -1,7 +1,7 @@
|
||||
# pkg
|
||||
|
||||
> Termux 的包管理工具。
|
||||
> 更多信息:<https://wiki.termux.com/wiki/Package_Management>.
|
||||
> 更多信息:<https://wiki.termux.com/wiki/Package_Management>。
|
||||
|
||||
- 升级所有已安装的包:
|
||||
|
||||
@@ -9,16 +9,16 @@
|
||||
|
||||
- 安装一个包:
|
||||
|
||||
`pkg install {{包名}}`
|
||||
`pkg install {{package}}`
|
||||
|
||||
- 卸载一个包:
|
||||
|
||||
`pkg uninstall {{包名}}`
|
||||
`pkg uninstall {{package}}`
|
||||
|
||||
- 重新安装一个包:
|
||||
|
||||
`pkg reinstall {{包名}}`
|
||||
`pkg reinstall {{package}}`
|
||||
|
||||
- 搜索一个包:
|
||||
|
||||
`pkg search {{包名}}`
|
||||
`pkg search {{package}}`
|
@@ -1,24 +1,24 @@
|
||||
# pm
|
||||
|
||||
> 显示关于 Android 设备上的应用程序的信息。
|
||||
> 更多信息:<https://developer.android.com/tools/adb#pm>.
|
||||
> 显示有关 Android 设备上应用程序的信息。
|
||||
> 更多信息:<https://developer.android.com/tools/adb#pm>。
|
||||
|
||||
- 打印所有已安装应用程序的列表:
|
||||
- 列出所有已安装的应用程序:
|
||||
|
||||
`pm list packages`
|
||||
|
||||
- 打印所有已安装的系统应用程序的列表:
|
||||
- 列出所有已安装的 [s]ystem 应用程序:
|
||||
|
||||
`pm list packages -s`
|
||||
|
||||
- 打印所有已安装的第三方应用程序的列表:
|
||||
- 列出所有已安装的 [3]rd-party 应用程序:
|
||||
|
||||
`pm list packages -3`
|
||||
|
||||
- 打印与指定关键字匹配的应用程序列表:
|
||||
- 列出匹配特定关键字的应用程序:
|
||||
|
||||
`pm list packages {{关键词}}`
|
||||
`pm list packages {{关键字1 关键字2 ...}}`
|
||||
|
||||
- 打印指定应用的 APK 的路径:
|
||||
- 显示特定应用程序的 APK 路径:
|
||||
|
||||
`pm path {{应用名}}`
|
||||
`pm path {{应用程序}}`
|
@@ -1,9 +1,9 @@
|
||||
# screencap
|
||||
# 屏幕截图
|
||||
|
||||
> 捕获移动设备显示器的屏幕截图。
|
||||
> 截取移动设备的屏幕截图。
|
||||
> 此命令只能通过 `adb shell` 使用。
|
||||
> 更多信息:<https://developer.android.com/tools/adb#screencap>.
|
||||
> 更多信息:<https://developer.android.com/tools/adb#screencap>。
|
||||
|
||||
- 捕获屏幕截图:
|
||||
- 截取屏幕截图:
|
||||
|
||||
`screencap {{路径/到/文件}}`
|
||||
`screencap {{path/to/file}}`
|
@@ -1,20 +1,20 @@
|
||||
# settings
|
||||
# 设置
|
||||
|
||||
> 获取关于 Android OS 的信息。
|
||||
> 更多信息:<https://adbinstaller.com/commands/adb-shell-settings-5b670d5ee7958178a2955536>.
|
||||
> 获取关于Android操作系统的信息。
|
||||
> 更多信息:<https://adbinstaller.com/commands/adb-shell-settings-5b670d5ee7958178a2955536>。
|
||||
|
||||
- 在 `全局` 命名空间中显示环境变量列表:
|
||||
- 列出`global`命名空间中的设置:
|
||||
|
||||
`settings list {{global}}`
|
||||
|
||||
- 获取指定环境变量的值:
|
||||
- 获取特定设置的值:
|
||||
|
||||
`settings get {{global}} {{airplane_mode_on}}`
|
||||
|
||||
- 设置指定环境变量的值:
|
||||
- 设置特定设置的值:
|
||||
|
||||
`settings put {{system}} {{screen_brightness}} {{42}}`
|
||||
|
||||
- 删除指定环境变量:
|
||||
- 删除特定设置:
|
||||
|
||||
`settings delete {{secure}} {{screensaver_enabled}}`
|
||||
`settings delete {{secure}} {{screensaver_enabled}}`
|
@@ -1,13 +1,13 @@
|
||||
# wm
|
||||
|
||||
> 显示关于 Android 设备屏幕的信息。
|
||||
> 此命令只能通过 `adb shell` 使用。
|
||||
> 更多信息:<https://adbinstaller.com/commands/adb-shell-wm-5b672b17e7958178a2955538>.
|
||||
> 显示Android设备屏幕的信息。
|
||||
> 此命令只能通过`adb shell`使用。
|
||||
> 更多信息:<https://adbinstaller.com/commands/adb-shell-wm-5b672b17e7958178a2955538>。
|
||||
|
||||
- 显示 Android 设备屏幕的物理尺寸:
|
||||
- 显示Android设备屏幕的物理尺寸:
|
||||
|
||||
`wm size`
|
||||
|
||||
- 显示 Android 设备屏幕的物理密度:
|
||||
- 显示Android设备屏幕的物理密度:
|
||||
|
||||
`wm density`
|
||||
`wm density`
|
@@ -1,36 +1,36 @@
|
||||
# Exclamation mark
|
||||
# 感叹号
|
||||
|
||||
> Bash 内置命令,用于替换历史记录中找到的命令。
|
||||
> 更多信息:<https://gnu.org/software/bash/manual/bash.html#Event-Designators>.
|
||||
> Bash 内置命令,用于用历史命令进行替换。
|
||||
> 更多信息:<https://gnu.org/software/bash/manual/bash.html#Event-Designators>。
|
||||
|
||||
- 使用`sudo`重新执行上一个命令:
|
||||
- 用前一个命令替换并使用 `sudo` 运行它:
|
||||
|
||||
`sudo !!`
|
||||
|
||||
- 通过在`history`中出现的`行号`来调取命令:
|
||||
- 用基于 `history` 中行号的命令替换:
|
||||
|
||||
`!{{行号}}`
|
||||
`!{{number}}`
|
||||
|
||||
- 调取`history`中的倒数第`数字`条命令:
|
||||
- 用指定行数之前的命令替换:
|
||||
|
||||
`!-{{数字}}`
|
||||
`!-{{number}}`
|
||||
|
||||
- 调取以`字符串`开头的最近执行的命令:
|
||||
- 用最近一个以某个字符串开头的命令替换:
|
||||
|
||||
`!{{字符串}}`
|
||||
`!{{string}}`
|
||||
|
||||
- 调取上一个命令的参数给`当前命令`:
|
||||
- 用最新命令的参数替换:
|
||||
|
||||
`{{当前命令}} !*`
|
||||
`{{command}} !*`
|
||||
|
||||
- 调取上一个命令的最后一个参数给`当前命令`:
|
||||
- 用最新命令的最后一个参数替换:
|
||||
|
||||
`{{当前命令}} !$`
|
||||
`{{command}} !$`
|
||||
|
||||
- 调取上一个命令,但不包含最后一个参数:
|
||||
- 用最后一个命令但不包括最后一个参数替换:
|
||||
|
||||
`!:-`
|
||||
|
||||
- 显示以特定字符串开头的最后一个命令,但不执行:
|
||||
- 打印以某个字符串开头的最后一个命令而不执行它:
|
||||
|
||||
`!{{字符串}}:p`
|
||||
`!{{string}}:p`
|
24
pages.zh/common/$.md
Normal file
24
pages.zh/common/$.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# 美元符号
|
||||
|
||||
> 扩展 Bash 变量。
|
||||
> 更多信息请访问:<https://gnu.org/software/bash/manual/bash.html#Shell-Variables>。
|
||||
|
||||
- 打印一个变量:
|
||||
|
||||
`echo ${{VARIABLE}}`
|
||||
|
||||
- 打印上一个命令的退出状态:
|
||||
|
||||
`echo $?`
|
||||
|
||||
- 打印一个介于 0 和 32767 之间的随机数:
|
||||
|
||||
`echo $RANDOM`
|
||||
|
||||
- 打印其中一个提示字符串:
|
||||
|
||||
`echo ${{PS0|PS1|PS2|PS3|PS4}}`
|
||||
|
||||
- 使用 `command` 的输出进行扩展并运行。与将 `command` 包含在反引号中相同:
|
||||
|
||||
`$({{command}})`
|
28
pages.zh/common/%.md
Normal file
28
pages.zh/common/%.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# 百分号
|
||||
|
||||
> 管理作业。
|
||||
> 更多信息:<https://www.gnu.org/software/bash/manual/bash.html#Job-Control-Basics>。
|
||||
|
||||
- 将当前作业置于前台:
|
||||
|
||||
`%`
|
||||
|
||||
- 将上一个作业置于前台:
|
||||
|
||||
`%-`
|
||||
|
||||
- 将编号为 `N` 的作业置于前台:
|
||||
|
||||
`%{{N}}`
|
||||
|
||||
- 将命令以 `string` 开头的作业置于前台:
|
||||
|
||||
`%{{string}}`
|
||||
|
||||
- 将命令包含 `string` 的作业置于前台:
|
||||
|
||||
`%?{{string}}`
|
||||
|
||||
- 恢复一个挂起的作业:
|
||||
|
||||
`%{{1}} &`
|
@@ -1,34 +1,34 @@
|
||||
# 2to3
|
||||
|
||||
> 自动将 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>.
|
||||
> 自动化 Python 2 到 3 的代码转换。
|
||||
> 此模块自 3.11 版本起已被弃用,并自 3.13 版本起被移除。
|
||||
> 参考链接:<https://github.com/python/cpython/blob/8d42e2d915c3096e7eac1c649751d1da567bb7c3/Doc/whatsnew/3.13.rst?plain=1#L188>。
|
||||
> 更多信息:<https://manned.org/2to3>。
|
||||
|
||||
- 显示将执行的变动但不执行(dry-run):
|
||||
- 显示将要执行的更改,而不执行它们(干运行):
|
||||
|
||||
`2to3 {{路径/到/文件.py}}`
|
||||
`2to3 {{path/to/file.py}}`
|
||||
|
||||
- 将 Python 2 文件转化为 Python 3:
|
||||
- 将 Python 2 文件转换为 Python 3:
|
||||
|
||||
`2to3 --write {{路径/到/文件.py}}`
|
||||
`2to3 --write {{path/to/file.py}}`
|
||||
|
||||
- 将 Python 2 语言特性转化为 Python 3:
|
||||
- 将特定的 Python 2 语言特性转换为 Python 3:
|
||||
|
||||
`2to3 --write {{路径/到/文件.py}} --fix {{raw_input}} --fix {{print}}`
|
||||
`2to3 --write {{path/to/file.py}} --fix {{raw_input}} --fix {{print}}`
|
||||
|
||||
- 除了某个语言特性外将所有其他的 Python 2 语言特性转化为 Python 3:
|
||||
- 将所有 Python 2 语言特性转换为 Python 3,除了指定的特性:
|
||||
|
||||
`2to3 --write {{路径/到/文件.py}} --nofix {{has_key}} --nofix {{isinstance}}`
|
||||
`2to3 --write {{path/to/file.py}} --nofix {{has_key}} --nofix {{isinstance}}`
|
||||
|
||||
- 列出 Python 2 所有可转化为 Python 3 的语言特性:
|
||||
- 列出所有可以从 Python 2 转换为 Python 3 的可用语言特性:
|
||||
|
||||
`2to3 --list-fixes`
|
||||
|
||||
- 将某一文件夹的所有 Python 2 文件转化为 Python 3:
|
||||
- 将目录中的所有 Python 2 文件转换为 Python 3:
|
||||
|
||||
`2to3 --output-dir {{路径/到/Python 3 目录}} --write-unchanged-files --nobackups {{路径/到/Python 2 目录}}`
|
||||
`2to3 --output-dir {{path/to/python3_directory}} --write-unchanged-files --nobackups {{path/to/python2_directory}}`
|
||||
|
||||
- 使用多线程运行 2to3:
|
||||
- 使用多个线程运行 2to3:
|
||||
|
||||
`2to3 --processes {{4}} --output-dir {{路径/到/Python 3 目录}} --write --nobackups --no-diff {{路径/到/Python 2 目录}}`
|
||||
`2to3 --processes {{4}} --output-dir {{path/to/python3_directory}} --write --nobackups --no-diff {{path/to/python2_directory}}`
|
@@ -1,36 +1,36 @@
|
||||
# 7z
|
||||
|
||||
> 一个高压缩率的文件归档器。
|
||||
> 更多信息:<https://manned.org/7z>.
|
||||
> 一个具有高压缩比的文件归档工具。
|
||||
> 更多信息:<https://manned.org/7z>。
|
||||
|
||||
- 归档一个文件或目录:
|
||||
- [a] 将文件或目录添加到新的或现有的归档中:
|
||||
|
||||
`7z a {{归档文件.7z}} {{文件或目录}}`
|
||||
`7z a {{path/to/archive.7z}} {{path/to/file_or_directory}}`
|
||||
|
||||
- 对已存在的归档文件加密(包括文件名):
|
||||
- 对现有归档进行加密(包括文件名):
|
||||
|
||||
`7z a {{加密文件.7z}} -p{{密码}} -mhe=on {{归档文件.7z}}`
|
||||
`7z a {{path/to/encrypted.7z}} -p{{password}} -mhe=on {{path/to/archive.7z}}`
|
||||
|
||||
- 提取一个已存在的 7z 文件,并保持原来的目录结构:
|
||||
- E[x] 提取归档,保留原始目录结构:
|
||||
|
||||
`7z x {{归档文件.7z}}`
|
||||
`7z x {{path/to/archive.7z}}`
|
||||
|
||||
- 提取一个归档文件到指定的输出目录:
|
||||
- E[x] 将归档提取到特定目录:
|
||||
|
||||
`7z x {{归档文件.7z}} -o{{输出目录}}`
|
||||
`7z x {{path/to/archive.7z}} -o{{path/to/output}}`
|
||||
|
||||
- 提取一个归档文件到标准输出:
|
||||
- E[x] 将归档提取到 `stdout`:
|
||||
|
||||
`7z x {{归档文件.7z}} -so`
|
||||
`7z x {{path/to/archive.7z}} -so`
|
||||
|
||||
- 使用指定的类型来归档文件:
|
||||
- [a] 使用特定的归档类型进行归档:
|
||||
|
||||
`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{归档文件}} {{文件或目录}}`
|
||||
`7z a -t{{7z|bzip2|gzip|lzip|tar|zip}} {{path/to/archive}} {{path/to/file_or_directory}}`
|
||||
|
||||
- 列出一个归档文件的内容:
|
||||
- [l] 列出归档的内容:
|
||||
|
||||
`7z l {{归档文件.7z}}`
|
||||
`7z l {{path/to/archive.7z}}`
|
||||
|
||||
- 设置压缩级别(数字越高表示压缩越多,但速度更慢):
|
||||
- 设置压缩级别(级别越高,压缩越多,但速度越慢):
|
||||
|
||||
`7z a {{归档文件.7z}} -mx={{0|1|3|5|7|9}} {{文件或目录}}`
|
||||
`7z a {{path/to/archive.7z}} -mx={{0|1|3|5|7|9}} {{path/to/file_or_directory}}`
|
@@ -1,37 +1,37 @@
|
||||
# 7za
|
||||
|
||||
> 一个高压缩率的文件归档器。
|
||||
> 类似于 `7z`,支持的文档类型更少但跨平台。
|
||||
> 更多信息:<https://manned.org/7za>.
|
||||
> 一个具有高压缩比的文件归档工具。
|
||||
> 类似于 `7z`,但支持的文件类型较少且是跨平台的。
|
||||
> 更多信息:<https://manned.org/7za>。
|
||||
|
||||
- 归档一个文件或目录:
|
||||
- [a] 归档一个文件或目录:
|
||||
|
||||
`7za a {{归档文件.7z}} {{文件或目录}}`
|
||||
`7za a {{path/to/archive.7z}} {{path/to/file_or_directory}}`
|
||||
|
||||
- 加密一个已存在的归档文件(包括文件名):
|
||||
- 加密现有的归档文件(包括文件名):
|
||||
|
||||
`7za a {{加密文件.7z}} -p{{密码}} -mhe={{on}} {{归档文件.7z}}`
|
||||
`7za a {{path/to/encrypted.7z}} -p{{password}} -mhe={{on}} {{path/to/archive.7z}}`
|
||||
|
||||
- 提取一个已存在的 7z 文件,并保持原来的目录结构:
|
||||
- E[x] 提取一个归档文件,保留原始目录结构:
|
||||
|
||||
`7za x {{归档文件.7z}}`
|
||||
`7za x {{path/to/archive.7z}}`
|
||||
|
||||
- 提取一个归档文件到指定目录:
|
||||
- E[x] 提取一个归档文件到特定目录:
|
||||
|
||||
`7za x {{归档文件.7z}} -o{{输出目录}}`
|
||||
`7za x {{path/to/archive.7z}} -o{{path/to/output}}`
|
||||
|
||||
- 提取一个归档文件到标准输出:
|
||||
- E[x] 将归档文件提取到 `stdout`:
|
||||
|
||||
`7za x {{归档文件.7z}} -so`
|
||||
`7za x {{path/to/archive.7z}} -so`
|
||||
|
||||
- 使用指定的类型来归档文件:
|
||||
- [a] 使用特定的归档类型进行归档:
|
||||
|
||||
`7za a -t{{7z|bzip2|gzip|lzip|tar|...}} {{归档文件.7z}} {{文件或目录}}`
|
||||
`7za a -t{{7z|bzip2|gzip|lzip|tar|...}} {{path/to/archive.7z}} {{path/to/file_or_directory}}`
|
||||
|
||||
- 列出一个归档文件的内容:
|
||||
- [l] 列出归档文件的内容:
|
||||
|
||||
`7za l {{归档文件.7z}}`
|
||||
`7za l {{path/to/archive.7z}}`
|
||||
|
||||
- 设置压缩级别(数字越高表示压缩越多,但速度更慢):
|
||||
- 设置压缩级别(更高的级别意味着更高的压缩率,但速度更慢):
|
||||
|
||||
`7za a {{归档文件.7z}} -mx={{0|1|3|5|7|9}} {{文件或目录}}`
|
||||
`7za a {{path/to/archive.7z}} -mx={{0|1|3|5|7|9}} {{path/to/file_or_directory}}`
|
@@ -1,33 +1,33 @@
|
||||
# 7zr
|
||||
|
||||
> 一个高压缩率的文件归档器。
|
||||
> 类似于 `7z`,只支持 7z 文件。
|
||||
> 更多信息:<https://manned.org/7zr>.
|
||||
> 一个具有高压缩比的文件归档工具。
|
||||
> 类似于 `7z`,但仅支持 7z 文件。
|
||||
> 更多信息:<https://manned.org/7zr>。
|
||||
|
||||
- 归档一个文件或目录:
|
||||
- [a] 归档一个文件或目录:
|
||||
|
||||
`7zr a {{归档文件.7z}} {{文件或目录}}`
|
||||
`7zr a {{path/to/archive.7z}} {{path/to/file_or_directory}}`
|
||||
|
||||
- 加密一个已存在的归档文件(包括文件名):
|
||||
- 加密一个现有的归档(包括文件名):
|
||||
|
||||
`7zr a {{加密文件.7z}} -p{{密码}} -mhe={{on}} {{归档文件.7z}}`
|
||||
`7zr a {{path/to/encrypted.7z}} -p{{password}} -mhe={{on}} {{path/to/archive.7z}}`
|
||||
|
||||
- 提取一个已存在的 7z 文件,并保持原来的目录结构:
|
||||
- E[x] 提取一个归档,保留原始目录结构:
|
||||
|
||||
`7zr x {{归档文件.7z}}`
|
||||
`7zr x {{path/to/archive.7z}}`
|
||||
|
||||
- 提取一个归档文件到指定的输出目录:
|
||||
- E[x] 提取一个归档到指定目录:
|
||||
|
||||
`7zr x {{归档文件.7z}} -o{{输出目录}}`
|
||||
`7zr x {{path/to/archive.7z}} -o{{path/to/output}}`
|
||||
|
||||
- 提取一个归档文件到标准输出:
|
||||
- E[x] 提取一个归档到 `stdout`:
|
||||
|
||||
`7zr x {{归档文件.7z}} -so`
|
||||
`7zr x {{path/to/archive.7z}} -so`
|
||||
|
||||
- 列出一个归档文件的内容:
|
||||
- [l] 列出归档的内容:
|
||||
|
||||
`7zr l {{归档文件.7z}}`
|
||||
`7zr l {{path/to/archive.7z}}`
|
||||
|
||||
- 设置压缩级别(数字越高表示压缩越多,但速度更慢):
|
||||
- 设置压缩级别(数字越高,压缩越多,但速度越慢):
|
||||
|
||||
`7zr a {{归档文件.7z}} -mx={{0|1|3|5|7|9}} {{文件或目录}}`
|
||||
`7zr a {{path/to/archive.7z}} -mx={{0|1|3|5|7|9}} {{path/to/file_or_directory}}`
|
@@ -1,33 +1,33 @@
|
||||
# [
|
||||
|
||||
> 检查文件类型,比较数值。
|
||||
> 如果条件计算结果为真返回 0,如果计算结果为假返回 1。
|
||||
> 更多信息:<https://gnu.org/software/bash/manual/bash.html#index-test>.
|
||||
> 检查文件类型并比较值。
|
||||
> 如果条件为真,返回状态0;如果条件为假,返回状态1。
|
||||
> 更多信息:<https://gnu.org/software/bash/manual/bash.html#index-test>。
|
||||
|
||||
- 测试一个给定的变量是否等于/不等于指定的字符串:
|
||||
- 测试给定变量是否等于/不等于指定字符串:
|
||||
|
||||
`[ "${{变量}}" {{=|!=}} "{{字符串}}" ]`
|
||||
`[ "${{variable}}" {{=|!=}} "{{string}}" ]`
|
||||
|
||||
- 测试一个给定的变量是否等于/不等于/大于/小于/大于等于/小于等于指定的数字:
|
||||
- 测试给定变量是否[等于]/[不]等于/[大于]/[小于]/[大于或等于]/[小于或等于]指定数字:
|
||||
|
||||
`[ "${{变量}}" -{{eq|ne|gt|lt|ge|le}} {{数字}} ]`
|
||||
`[ "${{variable}}" -{{eq|ne|gt|lt|ge|le}} {{integer}} ]`
|
||||
|
||||
- 测试指定的变量的值是否非空:
|
||||
- 测试指定变量是否具有[非]空值:
|
||||
|
||||
`[ -n "${{变量}}" ]`
|
||||
`[ -n "${{variable}}" ]`
|
||||
|
||||
- 测试指定变量的值是否为空:
|
||||
- 测试指定变量是否具有空值:
|
||||
|
||||
`[ -z "${{变量}}" ]`
|
||||
`[ -z "${{variable}}" ]`
|
||||
|
||||
- 测试指定文件是否存在:
|
||||
- 测试指定[文件]是否存在:
|
||||
|
||||
`[ -f {{路径/到/文件}} ]`
|
||||
`[ -f {{path/to/file}} ]`
|
||||
|
||||
- 测试指定目录是否存在:
|
||||
- 测试指定[目录]是否存在:
|
||||
|
||||
`[ -d {{路径/到/目录}} ]`
|
||||
`[ -d {{path/to/directory}} ]`
|
||||
|
||||
- 测试指定文件或目录是否存在:
|
||||
- 测试指定文件或目录[是否]存在:
|
||||
|
||||
`[ -e {{路径/到/文件或目录}} ]`
|
||||
`[ -e {{path/to/file_or_directory}} ]`
|
@@ -1,37 +1,37 @@
|
||||
# [[
|
||||
|
||||
> 检查文件类型,比较数值。
|
||||
> 如果条件计算结果为真返回 0,如果计算结果为假返回 1。
|
||||
> 更多信息:<https://gnu.org/software/bash/manual/bash.html#index-_005b_005b>.
|
||||
> 检查文件类型并比较值。
|
||||
> 如果条件为真,则返回状态0;如果条件为假,则返回1。
|
||||
> 更多信息:<https://gnu.org/software/bash/manual/bash.html#index-_005b_005b>。
|
||||
|
||||
- 测试一个给定的变量是否等于/不等于指定的字符串:
|
||||
- 测试给定变量是否等于/不等于指定字符串:
|
||||
|
||||
`[[ ${{变量}} {{==|!=}} "{{字符串}}" ]]`
|
||||
`[[ ${{variable}} {{==|!=}} "{{string}}" ]]`
|
||||
|
||||
- 测试一个给定的变量是否符合指定的通配符/正则表达式:
|
||||
- 测试给定字符串是否符合指定的通配符/正则表达式:
|
||||
|
||||
`[[ ${{变量}} {{==|=~}} {{模式}} ]]`
|
||||
`[[ ${{variable}} {{==|=~}} {{pattern}} ]]`
|
||||
|
||||
- 测试一个给定的变量是否等于/不等于/大于/小于/大于等于/小于等于指定的数字:
|
||||
- 测试给定变量是否[等于]/[不]等于/[大于]/[小于]/[大于或等于]/[小于或等于]指定数字:
|
||||
|
||||
`[[ ${{变量}} -{{eq|ne|gt|lt|ge|le}} {{数字}} ]]`
|
||||
`[[ ${{variable}} -{{eq|ne|gt|lt|ge|le}} {{integer}} ]]`
|
||||
|
||||
- 测试指定的变量的值是否非空:
|
||||
- 测试指定变量是否有[非]空值:
|
||||
|
||||
`[[ -n ${{变量}} ]]`
|
||||
`[[ -n ${{variable}} ]]`
|
||||
|
||||
- 测试指定的变量的值是否为空:
|
||||
- 测试指定变量是否为空值:
|
||||
|
||||
`[[ -z ${{变量}} ]]`
|
||||
`[[ -z ${{variable}} ]]`
|
||||
|
||||
- 测试指定文件是否存在:
|
||||
- 测试指定的[f]ile是否存在:
|
||||
|
||||
`[[ -f {{路径/到/文件}} ]]`
|
||||
`[[ -f {{path/to/file}} ]]`
|
||||
|
||||
- 测试指定目录是否存在:
|
||||
- 测试指定的[d]irectory是否存在:
|
||||
|
||||
`[[ -d {{路径/到/目录}} ]]`
|
||||
`[[ -d {{path/to/directory}} ]]`
|
||||
|
||||
- 测试指定文件或目录是否存在:
|
||||
- 测试指定的文件或目录[e]是否存在:
|
||||
|
||||
`[[ -e {{路径/到/文件或目录}} ]]`
|
||||
`[[ -e {{path/to/file_or_directory}} ]]`
|
@@ -1,21 +1,21 @@
|
||||
# Caret
|
||||
# 插入符号
|
||||
|
||||
> Bash 内置命令,用于快速替换上一个命令中的字符串并运行结果。
|
||||
> 等效于 `!!:s^string1^string2`。
|
||||
> 更多信息:<https://gnu.org/software/bash/manual/bash.html#Event-Designators>.
|
||||
> Bash 内置命令,用于快速替换上一条命令中的字符串并运行结果。
|
||||
> 等同于 `!!:s^string1^string2`。
|
||||
> 更多信息请访问:<https://gnu.org/software/bash/manual/bash.html#Event-Designators>。
|
||||
|
||||
- 运行上一个命令,将 `字符串 1` 替换为 `字符串 2`:
|
||||
- 运行上一条命令,将 `string1` 替换为 `string2`:
|
||||
|
||||
`^{{字符串 1}}^{{字符串 2}}`
|
||||
`^{{string1}}^{{string2}}`
|
||||
|
||||
- 从上一个命令中移除 `字符串 1`:
|
||||
- 从上一条命令中移除 `string1`:
|
||||
|
||||
`^{{字符串 1}}^`
|
||||
`^{{string1}}^`
|
||||
|
||||
- 在上一个命令中将 `字符串 1` 替换为 `字符串 2`,并在其末尾添加 `字符串 3`:
|
||||
- 在上一条命令中将 `string1` 替换为 `string2` 并在末尾添加 `string3`:
|
||||
|
||||
`^{{字符串 1}}^{{字符串 2}}^{{字符串 3}}`
|
||||
`^{{string1}}^{{string2}}^{{string3}}`
|
||||
|
||||
- 替换所有出现的 `字符串 1`:
|
||||
- 替换所有 `string1` 的出现:
|
||||
|
||||
`^{{字符串 1}}^{{字符串 2}}^:&`
|
||||
`^{{string1}}^{{string2}}^:&`
|
@@ -1,32 +1,32 @@
|
||||
# a2ping
|
||||
|
||||
> 将图像转换为 EPS 或 PDF 文件。
|
||||
> 更多信息:<https://manned.org/a2ping>.
|
||||
> 更多信息:<https://manned.org/a2ping>。
|
||||
|
||||
- 将图像转换为 PDF(注意:指定输出文件名是可选的):
|
||||
|
||||
`a2ping {{图像文件}} {{输出PDF文件}}`
|
||||
`a2ping {{path/to/image.ext}} {{path/to/output.pdf}}`
|
||||
|
||||
- 使用指定的方法压缩文档:
|
||||
|
||||
`a2ping --nocompress {{none|zip|best|flate}} {{文件}}`
|
||||
`a2ping --nocompress {{none|zip|best|flate}} {{path/to/file}}`
|
||||
|
||||
- 如果存在,则扫描 HiResBoundingBox(默认为是):
|
||||
- 如果存在,扫描 HiResBoundingBox(默认为是):
|
||||
|
||||
`a2ping --nohires {{文件}}`
|
||||
`a2ping --nohires {{path/to/file}}`
|
||||
|
||||
- 允许页面内容位于原点的下方和左侧(默认为否):
|
||||
- 允许页面内容位于原点下方和左侧(默认为否):
|
||||
|
||||
`a2ping --below {{文件}}`
|
||||
`a2ping --below {{path/to/file}}`
|
||||
|
||||
- 将额外的参数传递给 `gs`:
|
||||
- 传递额外参数给 `gs`:
|
||||
|
||||
`a2ping --gsextra {{参数}} {{文件}}`
|
||||
`a2ping --gsextra {{arguments}} {{path/to/file}}`
|
||||
|
||||
- 将额外的参数传递给外部程序(如 `pdftops`):
|
||||
- 传递额外参数给外部程序(即 `pdftops`):
|
||||
|
||||
`a2ping --extra {{参数}} {{文件}}`
|
||||
`a2ping --extra {{arguments}} {{path/to/file}}`
|
||||
|
||||
- 显示帮助信息:
|
||||
|
||||
`a2ping -h`
|
||||
`a2ping -h`
|
@@ -1,17 +1,16 @@
|
||||
# aapt
|
||||
|
||||
> 安卓资源包工具(Android Asset Packaging Tools)。
|
||||
> 该工具可以查看,创建,更新资源压缩包(zip, jar, apk)。
|
||||
> 更多信息:<https://manned.org/aapt>.
|
||||
> Android资源打包工具:编译和打包Android应用的资源。
|
||||
> 更多信息:<https://manned.org/aapt>。
|
||||
|
||||
- 列出资源压缩包里的内容:
|
||||
- 列出APK归档中包含的文件:
|
||||
|
||||
`aapt list {{路径/到/应用.apk}}`
|
||||
`aapt list {{path/to/app.apk}}`
|
||||
|
||||
- 查看 APK 包内指定的内容(版本,权限许可等):
|
||||
- 显示应用的元数据(版本、权限等):
|
||||
|
||||
`aapt dump badging {{路径/到/应用.apk}}`
|
||||
`aapt dump badging {{path/to/app.apk}}`
|
||||
|
||||
- 打包生成资源压缩包:
|
||||
- 从指定目录创建一个新的APK归档:
|
||||
|
||||
`aapt package -F {{路径/到/应用.apk}} {{路径/到/目录}}`
|
||||
`aapt package -F {{path/to/app.apk}} {{path/to/directory}}`
|
@@ -1,28 +1,28 @@
|
||||
# ab
|
||||
|
||||
> Apache 基准测试工具。
|
||||
> 更多信息:<https://httpd.apache.org/docs/current/programs/ab.html>.
|
||||
> Apache HTTP 服务器基准测试工具。
|
||||
> 更多信息:<https://httpd.apache.org/docs/current/programs/ab.html>。
|
||||
|
||||
- 向目标 URL 执行 100 次 HTTP GET 请求:
|
||||
- 执行 100 个 HTTP GET 请求到指定 URL:
|
||||
|
||||
`ab -n 100 {{url}}`
|
||||
|
||||
- 使用 10 个并发请求,同时向目标 URL 执行 100 次 HTTP GET 请求:
|
||||
- 以 10 个并发批次执行 100 个 HTTP GET 请求到一个 URL:
|
||||
|
||||
`ab -n 100 -c 10 {{url}}`
|
||||
|
||||
- 使用来自文件的 JSON 负载对 URL 执行 100 个 HTTP POST 请求:
|
||||
- 执行 100 个 HTTP POST 请求到一个 URL,使用来自文件的 JSON 有效负载:
|
||||
|
||||
`ab -n 100 -T {{application/json}} -p {{path/to/file.json}} {{url}}`
|
||||
|
||||
- 使用 HTTP [K]eep Alive,即在一个 HTTP 会话中执行多个请求:
|
||||
- 使用 HTTP [k]eep-Alive,即在一个 HTTP 会话中执行多个请求:
|
||||
|
||||
`ab -k {{url}}`
|
||||
|
||||
- 为基准测试设置最大的测试时间(单位:秒):
|
||||
- 设置基准测试的最大秒数([t]imeout),默认为 30 秒:
|
||||
|
||||
`ab -t {{60}} {{url}}`
|
||||
|
||||
- 将结果写入到一个 CSV 文件中:
|
||||
- 将结果写入 CSV 文件:
|
||||
|
||||
`ab -e {{路径/到/文件.csv}}`
|
||||
`ab -e {{path/to/file.csv}}`
|
@@ -1,24 +1,24 @@
|
||||
# abduco
|
||||
|
||||
> 终端会话管理器。
|
||||
> 更多信息:<https://www.brain-dump.org/projects/abduco/>.
|
||||
> 更多信息:<https://www.brain-dump.org/projects/abduco/>。
|
||||
|
||||
- 列出会话:
|
||||
|
||||
`abduco`
|
||||
|
||||
- 附加到一个会话,如果不存在则新建它:
|
||||
- [A] 附加到会话,如果会话不存在则创建它:
|
||||
|
||||
`abduco -A {{会话名}} {{终端}}`
|
||||
`abduco -A {{name}} {{bash}}`
|
||||
|
||||
- 使用`dvtm`附加到一个会话,如果不存在则新建它:
|
||||
- [A] 附加到会话并使用 `dvtm`,如果会话不存在则创建它:
|
||||
|
||||
`abduco -A {{会话名}}`
|
||||
`abduco -A {{name}}`
|
||||
|
||||
- 从一个会话中分离:
|
||||
- 从会话中分离:
|
||||
|
||||
`<Ctrl> + \`
|
||||
|
||||
- 以只读模式附加到一个会话:
|
||||
- [A] 以 [r] 只读模式附加到会话:
|
||||
|
||||
`abduco -Ar {{会话名}}`
|
||||
`abduco -Ar {{name}}`
|
@@ -1,20 +1,20 @@
|
||||
# ac
|
||||
|
||||
> 打印用户连接时间的统计数据。
|
||||
> 更多信息:<https://man.openbsd.org/ac>.
|
||||
> 打印用户已连接的时间统计信息。
|
||||
> 更多信息:<https://man.openbsd.org/ac>。
|
||||
|
||||
- 打印当前用户连接的时间,以小时为单位:
|
||||
- 打印当前用户已连接的时间(以小时为单位):
|
||||
|
||||
`ac`
|
||||
|
||||
- 打印用户连接的时间,以小时为单位:
|
||||
- 打印用户已连接的时间(以小时为单位):
|
||||
|
||||
`ac -p`
|
||||
|
||||
- 打印一个特定用户的连接时间,以小时为单位:
|
||||
- 打印特定用户已连接的时间(以小时为单位):
|
||||
|
||||
`ac -p {{用户名}}`
|
||||
`ac -p {{username}}`
|
||||
|
||||
- 打印一个特定用户每天连接的时间,以小时为单位(包括总数):
|
||||
- 打印特定用户每天已连接的时间(以小时为单位,包括总计):
|
||||
|
||||
`ac -dp {{用户名}}`
|
||||
`ac -dp {{username}}`
|
@@ -1,28 +1,28 @@
|
||||
# accelerate
|
||||
|
||||
> 一个使得可以在任何分布式配置中运行相同的 PyTorch 代码的库。
|
||||
> 更多信息:<https://huggingface.co/docs/accelerate/index>.
|
||||
> 一个库,可以在任何分布式配置中运行相同的PyTorch代码。
|
||||
> 更多信息:<https://huggingface.co/docs/accelerate/index>。
|
||||
|
||||
- 打印环境信息:
|
||||
|
||||
`accelerate env`
|
||||
|
||||
- 交互式地创建配置文件:
|
||||
- 交互式创建配置文件:
|
||||
|
||||
`accelerate config`
|
||||
|
||||
- 打印使用不同数据类型运行 Hugging Face 模型的估计 GPU 内存成本:
|
||||
- 打印使用不同数据类型运行Hugging Face模型的估计GPU内存成本:
|
||||
|
||||
`accelerate estimate-memory {{名字/模型}}`
|
||||
`accelerate estimate-memory {{name/model}}`
|
||||
|
||||
- 测试一个 Accelerate 配置文件:
|
||||
- 测试Accelerate配置文件:
|
||||
|
||||
`accelerate test --config_file {{路径/到/配置文件.yaml}}`
|
||||
`accelerate test --config_file {{path/to/config.yaml}}`
|
||||
|
||||
- 使用 Accelerate 在 CPU 上运行一个模型:
|
||||
- 使用Accelerate在CPU上运行模型:
|
||||
|
||||
`accelerate launch {{路径/到/脚本.py}} {{--cpu}}`
|
||||
`accelerate launch {{path/to/script.py}} {{--cpu}}`
|
||||
|
||||
- 使用 Accelerate 在多 GPU 上运行一个模型,使用 2 台机器:
|
||||
- 使用Accelerate在多GPU上运行模型,包含2台机器:
|
||||
|
||||
`accelerate launch {{路径/到/脚本.py}} --multi_gpu --num_machines 2`
|
||||
`accelerate launch {{path/to/script.py}} --multi_gpu --num_machines 2`
|
@@ -1,18 +1,18 @@
|
||||
# ack
|
||||
|
||||
> 一个类似 grep 的搜索工具,为程序员优化。
|
||||
> 另见 `rg`,它要快得多。
|
||||
> 更多信息:<https://beyondgrep.com/documentation>.
|
||||
> 一种类似于 `grep` 的搜索工具,专为开发人员优化。
|
||||
> 另见:`rg`,速度更快。
|
||||
> 更多信息:<https://beyondgrep.com/documentation>。
|
||||
|
||||
- 在当前目录下递归地搜索包含一个字符串或正则表达式的文件:
|
||||
- 在当前目录递归搜索包含字符串或正则表达式的文件:
|
||||
|
||||
`ack "{{search_pattern}}"`
|
||||
|
||||
- 不区分大小写搜索:
|
||||
- 搜索不区分大小写的模式:
|
||||
|
||||
`ack --ignore-case "{{search_pattern}}"`
|
||||
|
||||
- 搜索匹配模式的行,只打印匹配的文本,而不打印行的其他部分:
|
||||
- 搜索匹配某个模式的行,仅打印匹配的文本而不打印行的其余部分:
|
||||
|
||||
`ack -o "{{search_pattern}}"`
|
||||
|
||||
@@ -24,14 +24,14 @@
|
||||
|
||||
`ack --type no{{ruby}} "{{search_pattern}}"`
|
||||
|
||||
- 计算找到的匹配文件的总数:
|
||||
- 统计找到的匹配总数:
|
||||
|
||||
`ack --count --no-filename "{{search_pattern}}"`
|
||||
|
||||
- 只打印文件名和每个文件的匹配数:
|
||||
- 仅打印文件名和每个文件的匹配数量:
|
||||
|
||||
`ack --count --files-with-matches "{{search_pattern}}"`
|
||||
|
||||
- 列出所有可与 `--type` 一起使用的值:
|
||||
- 列出所有可以与 `--type` 一起使用的值:
|
||||
|
||||
`ack --help-types`
|
||||
`ack --help-types`
|
@@ -1,24 +1,24 @@
|
||||
# acme.sh --dns
|
||||
|
||||
> 使用 DNS-01 挑战来签发 TLS 证书。
|
||||
> 更多信息:<https://github.com/acmesh-official/acme.sh/wiki>.
|
||||
> 使用 DNS-01 挑战来颁发 TLS 证书。
|
||||
> 更多信息:<https://github.com/acmesh-official/acme.sh/wiki>。
|
||||
|
||||
- 使用自动 DNS API 模式签发证书:
|
||||
- 使用自动 DNS API 模式颁发证书:
|
||||
|
||||
`acme.sh --issue --dns {{gnd_gd}} --domain {{example.com}}`
|
||||
|
||||
- 使用自动 DNS API 模式签发通配符证书(用星号表示):
|
||||
- 使用自动 DNS API 模式颁发通配符证书(用星号表示):
|
||||
|
||||
`acme.sh --issue --dns {{dns_namesilo}} --domain {{example.com}} --domain {{*.example.com}}`
|
||||
|
||||
- 使用 DNS 别名模式签发证书:
|
||||
- 使用 DNS 别名模式颁发证书:
|
||||
|
||||
`acme.sh --issue --dns {{dns_cf}} --domain {{example.com}} --challenge-alias {{alias-for-example-validation.com}}`
|
||||
|
||||
- 在添加 DNS 记录后,通过指定自定义的等待时间(秒),在禁用 Cloudflare / Google DNS 自动轮询的同时签发证书:
|
||||
- 在指定自定义等待时间(以秒为单位)的情况下颁发证书,同时禁用在 DNS 记录添加后自动轮询 Cloudflare/Google DNS:
|
||||
|
||||
`acme.sh --issue --dns {{dns_namecheap}} --domain {{example.com}} --dnssleep {{300}}`
|
||||
|
||||
- 使用手动 DNS 模式签发证书:
|
||||
- 使用手动 DNS 模式颁发证书:
|
||||
|
||||
`acme.sh --issue --dns --domain {{example.com}} --yes-I-know-dns-manual-mode-enough-go-ahead-please`
|
||||
`acme.sh --issue --dns --domain {{example.com}} --yes-I-know-dns-manual-mode-enough-go-ahead-please`
|
@@ -1,33 +1,33 @@
|
||||
# acme.sh
|
||||
|
||||
> 实现了 ACME 客户端协议的 shell 脚本,是 `certbot` 的替代品。
|
||||
> 实现 ACME 客户端协议的 Shell 脚本,是 `certbot` 的替代方案。
|
||||
> 另见 `acme.sh dns`。
|
||||
> 更多信息:<https://github.com/acmesh-official/acme.sh>.
|
||||
> 更多信息:<https://github.com/acmesh-official/acme.sh>。
|
||||
|
||||
- 使用网站根目录模式签发证书:
|
||||
- 使用 webroot 模式签发证书:
|
||||
|
||||
`acme.sh --issue --domain {{example.com}} --webroot {{/路径/到/网站根目录}}`
|
||||
`acme.sh --issue --domain {{example.com}} --webroot {{/path/to/webroot}}`
|
||||
|
||||
- 使用独立模式和 80 端口为多个域名签发证书:
|
||||
- 使用独立模式在端口 80 为多个域签发证书:
|
||||
|
||||
`acme.sh --issue --standalone --domain {{example.com}} --domain {{www.example.com}}`
|
||||
|
||||
- 使用独立 TLS 模式和 443 端口签发证书:
|
||||
- 使用独立 TLS 模式在端口 443 签发证书:
|
||||
|
||||
`acme.sh --issue --alpn --domain {{example.com}}`
|
||||
|
||||
- 使用运行中的 Nginx 的配置来签发证书:
|
||||
- 使用有效的 Nginx 配置签发证书:
|
||||
|
||||
`acme.sh --issue --nginx --domain {{example.com}}`
|
||||
|
||||
- 使用运行中的 Apache 的配置来签发证书:
|
||||
- 使用有效的 Apache 配置签发证书:
|
||||
|
||||
`acme.sh --issue --apache --domain {{example.com}}`
|
||||
|
||||
- 使用自动 DNS API 模式签发一个通配符(\*)证书:
|
||||
- 使用自动 DNS API 模式签发通配符(*)证书:
|
||||
|
||||
`acme.sh --issue --dns {{dns_cf}} --domain {{*.example.com}}`
|
||||
|
||||
- 将证书文件安装到指定位置(对自动更新证书很有用):
|
||||
- 将证书文件安装到指定位置(对自动证书续期非常有用):
|
||||
|
||||
`acme.sh --install-cert -d {{example.com}} --key-file {{/路径/到/example.com.key}} --fullchain-file {{/路径/到/example.com.cer}} --reloadcmd "{{systemctl force-reload nginx}}"`
|
||||
`acme.sh --install-cert -d {{example.com}} --key-file {{/path/to/example.com.key}} --fullchain-file {{/path/to/example.com.cer}} --reloadcmd "{{systemctl force-reload nginx}}"`
|
@@ -1,32 +1,32 @@
|
||||
# act
|
||||
|
||||
> 使用 Docker 本地运行 GitHub Actions.
|
||||
> 更多信息:<https://github.com/nektos/act>.
|
||||
> 使用 Docker 在本地执行 GitHub Actions。
|
||||
> 更多信息:<https://github.com/nektos/act>。
|
||||
|
||||
- 列出可用的 actions 清单:
|
||||
- [l] 列出可用的作业:
|
||||
|
||||
`act -l`
|
||||
|
||||
- 运行默认 event:
|
||||
- 运行默认事件:
|
||||
|
||||
`act`
|
||||
|
||||
- 运行指定 event:
|
||||
- 运行特定事件:
|
||||
|
||||
`act {{event_type}}`
|
||||
|
||||
- 运行指定 action:
|
||||
- 运行特定的 [j]ob:
|
||||
|
||||
`act -a {{action_id}}`
|
||||
`act -j {{job_id}}`
|
||||
|
||||
- 非实际运行 actions(也就是 dry-run 模式):
|
||||
- [n] 不实际运行操作(即干运行):
|
||||
|
||||
`act -n`
|
||||
|
||||
- 展示详细记录:
|
||||
- 显示 [v] 详细日志:
|
||||
|
||||
`act -v`
|
||||
|
||||
- 运行指定 workflow:
|
||||
- 使用推送事件运行特定 [W]orkflow:
|
||||
|
||||
`act push -W {{workflow 的路径}}`
|
||||
`act push -W {{path/to/workflow}}`
|
@@ -1,17 +1,17 @@
|
||||
# acyclic
|
||||
# 无环
|
||||
|
||||
> 通过反转一些边来使有向图无环。
|
||||
> Graphviz 过滤器:`acyclic`、`bcomps`、`comps`、`edgepaint`、`gvcolor`、`gvpack`、`mingle`、`nop`、`sccmap`、`tred` 和 `unflatten`。
|
||||
> 更多信息:<https://graphviz.org/pdf/acyclic.1.pdf>.
|
||||
> 通过反转一些边,使有向图无环。
|
||||
> Graphviz 过滤器:`acyclic`,`bcomps`,`comps`,`edgepaint`,`gvcolor`,`gvpack`,`mingle`,`nop`,`sccmap`,`tred` 和 `unflatten`。
|
||||
> 更多信息:<https://graphviz.org/pdf/acyclic.1.pdf>。
|
||||
|
||||
- 通过反转一些边来使有向图无环:
|
||||
- 通过反转一些边,使有向图无环:
|
||||
|
||||
`acyclic {{路径/到/输入.gv}} > {{路径/到/输出.gv}}`
|
||||
`acyclic {{path/to/input.gv}} > {{path/to/output.gv}}`
|
||||
|
||||
- 打印出一个图是无环的、有环的还是无向的,不产生输出图:
|
||||
- 打印图是否无环、是否有环或是无向图,不产生输出图:
|
||||
|
||||
`acyclic -v -n {{路径/到/输入.gv}}`
|
||||
`acyclic -v -n {{path/to/input.gv}}`
|
||||
|
||||
- 显示 `acyclic` 的帮助:
|
||||
- 显示帮助信息:
|
||||
|
||||
`acyclic -?`
|
||||
`acyclic -?`
|
@@ -1,7 +1,7 @@
|
||||
# adb devices
|
||||
|
||||
> 列出已连接的 Android 设备。
|
||||
> 更多信息:<https://manned.org/adb>.
|
||||
> 列出连接的 Android 设备。
|
||||
> 更多信息:<https://manned.org/adb>。
|
||||
|
||||
- 列出设备:
|
||||
|
||||
@@ -9,4 +9,4 @@
|
||||
|
||||
- 列出设备及其系统信息:
|
||||
|
||||
`adb devices -l`
|
||||
`adb devices -l`
|
20
pages.zh/common/adb-forward.md
Normal file
20
pages.zh/common/adb-forward.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# adb 转发
|
||||
|
||||
> 无线连接到 Android 设备。
|
||||
> 更多信息:<https://developer.android.com/tools/adb>。
|
||||
|
||||
- 转发 TCP 端口:
|
||||
|
||||
`adb forward tcp:{{local_port}} tcp:{{remote_port}}`
|
||||
|
||||
- 列出所有转发:
|
||||
|
||||
`adb forward --list`
|
||||
|
||||
- 移除一个转发规则:
|
||||
|
||||
`adb forward --remove tcp:{{local_port}}`
|
||||
|
||||
- 移除所有转发规则:
|
||||
|
||||
`adb forward --remove-all`
|
@@ -1,28 +1,28 @@
|
||||
# adb install
|
||||
# adb 安装
|
||||
|
||||
> 安卓调试桥 -Install: 将应用安装包推送到 Android 模拟器或已连接的安卓设备。
|
||||
> 更多信息:<https://developer.android.com/tools/adb>.
|
||||
> 将软件包推送到连接的 Android 设备或模拟器。
|
||||
> 更多信息:<https://developer.android.com/tools/adb>。
|
||||
|
||||
- 向模拟器/设备推送安卓 app:
|
||||
- 将 Android 应用程序推送到模拟器/设备:
|
||||
|
||||
`adb install {{路径/到/应用.apk}}`
|
||||
`adb install {{path/to/file.apk}}`
|
||||
|
||||
- 向特定的模拟器/设备推送安卓 app(覆盖 `$ANDROID_SERIAL`):
|
||||
- 将 Android 应用程序推送到特定的模拟器/设备(覆盖 `$ANDROID_SERIAL`):
|
||||
|
||||
`adb -s {{序列号}} install {{路径/到/应用.apk}}`
|
||||
`adb -s {{serial_number}} install {{path/to/file.apk}}`
|
||||
|
||||
- 重装 app, 保持原有数据:
|
||||
- [r]einstall 现有应用,保留其数据:
|
||||
|
||||
`adb install -r {{路径/到/应用.apk}}`
|
||||
`adb install -r {{path/to/file.apk}}`
|
||||
|
||||
- 推送一个允许版本代码降级的安卓 app(仅适用于可调试的软件包):
|
||||
- 推送 Android 应用程序,允许版本代码 [d]owngrade(仅限可调试包):
|
||||
|
||||
`adb install -d {{路径/到/应用.apk}}`
|
||||
`adb install -d {{path/to/file.apk}}`
|
||||
|
||||
- 授予 app manifest 中列举的所有权限许可:
|
||||
- [g]rant 应用清单中列出的所有权限:
|
||||
|
||||
`adb install -g {{路径/到/应用.apk}}`
|
||||
`adb install -g {{path/to/file.apk}}`
|
||||
|
||||
- 快速部署模式,仅更新 APK 更改过的部分:
|
||||
- 通过只更新更改的 APK 部分快速更新已安装的包:
|
||||
|
||||
`adb install --fastdeploy {{路径/到/应用.apk}}`
|
||||
`adb install --fastdeploy {{path/to/file.apk}}`
|
@@ -1,25 +1,25 @@
|
||||
# adb logcat
|
||||
|
||||
> 转储系统消息日志。
|
||||
> 更多信息:<https://developer.android.com/tools/logcat>.
|
||||
> 转储系统消息的日志。
|
||||
> 更多信息:<https://developer.android.com/tools/logcat>。
|
||||
|
||||
- 显示系统日志:
|
||||
|
||||
`adb logcat`
|
||||
|
||||
- 显示符合正则表达式的行:
|
||||
- 显示匹配正则表达式的行:
|
||||
|
||||
`adb logcat -e {{正则表达式}}`
|
||||
|
||||
- 显示特定优先级下(V:详细,D:调试,I:信息,W:警告,E:错误,F:严重错误,S:静默)标记的日志,过滤掉其他标记:
|
||||
- 以特定模式([V]详细,[D]调试,[I]信息,[W]警告,[E]错误,[F]致命,[S]静默)显示特定标签的日志,过滤其他标签:
|
||||
|
||||
`adb logcat {{标记}}:{{最低优先级}} *:S`
|
||||
`adb logcat {{标签}}:{{模式}} *:S`
|
||||
|
||||
- 在详细(V)模式下显示 React Native 应用程序的日志,静默(S)其他标记:
|
||||
- 以详细模式显示 React Native 应用程序的日志,静默其他标签:
|
||||
|
||||
`adb logcat ReactNative:V ReactNativeJS:V *:S`
|
||||
|
||||
- 显示优先级为警告(W)及以上的所有标签的日志:
|
||||
- 显示所有标签的日志,优先级为警告及以上:
|
||||
|
||||
`adb logcat *:W`
|
||||
|
||||
@@ -27,10 +27,10 @@
|
||||
|
||||
`adb logcat --pid {{pid}}`
|
||||
|
||||
- 显示某个特定软件包的进程日志:
|
||||
- 显示特定包的进程日志:
|
||||
|
||||
`adb logcat --pid $(adb shell pidof -s {{软件包}})`
|
||||
`adb logcat --pid $(adb shell pidof -s {{包名}})`
|
||||
|
||||
- 给日志着色(通常与过滤器一起使用):
|
||||
- 为日志上色(通常与过滤器一起使用):
|
||||
|
||||
`adb logcat -v color`
|
||||
`adb logcat -v color`
|
@@ -1,20 +1,20 @@
|
||||
# adb reboot
|
||||
# adb 重启
|
||||
|
||||
> 重启已连接的 Android 设备或模拟器。
|
||||
> 更多信息:<https://manned.org/adb>.
|
||||
> 重启连接的 Android 设备或模拟器。
|
||||
> 更多信息:<https://manned.org/adb>。
|
||||
|
||||
- 正常重启设备:
|
||||
- 正常重启设备:
|
||||
|
||||
`adb reboot`
|
||||
|
||||
- 重启设备到引导加载程序模式:
|
||||
- 将设备重启到引导程序模式:
|
||||
|
||||
`adb reboot bootloader`
|
||||
|
||||
- 重启设备到恢复模式:
|
||||
- 将设备重启到恢复模式:
|
||||
|
||||
`adb reboot recovery`
|
||||
|
||||
- 重启设备到 fastboot 模式:
|
||||
- 将设备重启到快速启动模式:
|
||||
|
||||
`adb reboot fastboot`
|
||||
`adb reboot fastboot`
|
@@ -1,20 +1,20 @@
|
||||
# adb reverse
|
||||
|
||||
> 安卓调试桥-反射: 反向映射安卓模拟器实例或者已连接的实体设备的套接字连接。
|
||||
> 更多信息:<https://developer.android.com/tools/adb>.
|
||||
> 从连接的 Android 设备或模拟器反向 socket 连接。
|
||||
> 更多信息:<https://developer.android.com/tools/adb>。
|
||||
|
||||
- 列出所有来自模拟器和设备的映射连接:
|
||||
- 列出所有来自模拟器和设备的反向 socket 连接:
|
||||
|
||||
`adb reverse --list`
|
||||
|
||||
- 将 TCP 端口从安卓模拟器或设备中映射到 localhost:
|
||||
- 从模拟器或设备将 TCP 端口反向到本地主机:
|
||||
|
||||
`adb reverse tcp:{{远程端口}} tcp:{{本地端口}}`
|
||||
`adb reverse tcp:{{remote_port}} tcp:{{local_port}}`
|
||||
|
||||
- 从安卓模拟器或设备移除一个反向 socket 连接:
|
||||
- 从模拟器或设备移除一个反向 socket 连接:
|
||||
|
||||
`adb reverse --remove tcp:{{远程端口}}`
|
||||
`adb reverse --remove tcp:{{remote_port}}`
|
||||
|
||||
- 从安卓模拟器或设备移除所有反向 socket 连接:
|
||||
- 从所有模拟器和设备中移除所有反向 socket 连接:
|
||||
|
||||
`adb reverse --remove-all`
|
||||
`adb reverse --remove-all`
|
@@ -1,36 +1,36 @@
|
||||
# adb shell
|
||||
|
||||
> 安卓调试桥-Shell: 运行安卓模拟器或者连接设备上的远程终端命令。
|
||||
> 更多信息:<https://developer.android.com/tools/adb>.
|
||||
> 在连接的 Android 设备或模拟器上运行 shell 命令。
|
||||
> 更多信息:<https://developer.android.com/tools/adb>。
|
||||
|
||||
- 启动模拟器/设备上的远程终端:
|
||||
- 在模拟器或设备上启动远程交互式 shell:
|
||||
|
||||
`adb shell`
|
||||
|
||||
- 获取模拟器/设备全部属性:
|
||||
- 获取模拟器或设备的所有属性:
|
||||
|
||||
`adb shell getprop`
|
||||
|
||||
- 重置所有运行时权限为它们的默认值:
|
||||
- 将所有运行时权限恢复为默认值:
|
||||
|
||||
`adb shell pm reset-permissions`
|
||||
|
||||
- 撤销一个应用的危险权限:
|
||||
- 撤销应用程序的危险权限:
|
||||
|
||||
`adb shell pm revoke {{包名}} {{权限}}`
|
||||
`adb shell pm revoke {{package}} {{permission}}`
|
||||
|
||||
- 触发一个键盘敲击事件:
|
||||
- 触发一个按键事件:
|
||||
|
||||
`adb shell input keyevent {{键位码}}`
|
||||
`adb shell input keyevent {{keycode}}`
|
||||
|
||||
- 清除模拟器/设备上的数据:
|
||||
- 清除模拟器或设备上应用程序的数据:
|
||||
|
||||
`adb shell pm clear {{包名}}`
|
||||
`adb shell pm clear {{package}}`
|
||||
|
||||
- 启动模拟器/设备上的一个行为:
|
||||
- 在模拟器或设备上启动一个活动:
|
||||
|
||||
`adb shell am start -n {{包名}}/{{活动名}}`
|
||||
`adb shell am start -n {{package}}/{{activity}}`
|
||||
|
||||
- 启动模拟器/设备上的首页活动:
|
||||
- 在模拟器或设备上启动主屏幕活动:
|
||||
|
||||
`adb shell am start -W -c android.intent.category.HOME -a android.intent.action.MAIN`
|
||||
`adb shell am start -W -c android.intent.category.HOME -a android.intent.action.MAIN`
|
12
pages.zh/common/adb-uninstall.md
Normal file
12
pages.zh/common/adb-uninstall.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# adb 卸载
|
||||
|
||||
> 卸载一个包。
|
||||
> 更多信息:<https://manned.org/adb>。
|
||||
|
||||
- 卸载一个包:
|
||||
|
||||
`adb uninstall {{com.example.app}}`
|
||||
|
||||
- 卸载一个包,但保留用户数据:
|
||||
|
||||
`adb uninstall -k {{com.example.app}}`
|
@@ -1,33 +1,37 @@
|
||||
# adb
|
||||
|
||||
> 安卓调试桥:与 Android 模拟器或已连接的 Android 设备通信。
|
||||
> 此命令也有关于其子命令的文件,例如:`shell`.
|
||||
> 更多信息:<https://developer.android.com/tools/adb>.
|
||||
> Android 调试桥:与 Android 模拟器实例或连接的 Android 设备进行通信。
|
||||
> 一些子命令如 `shell` 有其自己的使用文档。
|
||||
> 更多信息:<https://developer.android.com/tools/adb>。
|
||||
|
||||
- 检查 adb server 进程的是否在运行,并开启它:
|
||||
- 检查 adb 服务器进程是否在运行并启动它:
|
||||
|
||||
`adb start-server`
|
||||
|
||||
- 终止 adb server 进程:
|
||||
- 终止 adb 服务器进程:
|
||||
|
||||
`adb kill-server`
|
||||
|
||||
- 在目标模拟器 / 设备实例上开启一个远程 shell:
|
||||
- 在目标模拟器/设备实例中启动远程 shell:
|
||||
|
||||
`adb shell`
|
||||
|
||||
- 将 Android 应用程序推送到模拟器 / 设备:
|
||||
- 将 Android 应用程序推送到模拟器/设备:
|
||||
|
||||
`adb install -r {{路径/到/应用.apk}}`
|
||||
`adb install -r {{path/to/file.apk}}`
|
||||
|
||||
- 从目标设备上拷贝一个文件 / 目录到本地:
|
||||
- 从目标设备复制文件/目录:
|
||||
|
||||
`adb pull {{路径/到/设备的文件或目录}} {{路径/到/本地上的目录}}`
|
||||
`adb pull {{path/to/device_file_or_directory}} {{path/to/local_destination_directory}}`
|
||||
|
||||
- 从本地拷贝一个文件 / 目录到目标设备:
|
||||
- 将文件/目录复制到目标设备:
|
||||
|
||||
`adb push {{路径/到/本地文件或目录}} {{路径/到/设备上的目录}}`
|
||||
`adb push {{path/to/local_file_or_directory}} {{path/to/device_destination_directory}}`
|
||||
|
||||
- 列出已连接的设备:
|
||||
- 列出所有连接的设备:
|
||||
|
||||
`adb devices`
|
||||
|
||||
- 如果有多个设备,请指定要发送命令的设备:
|
||||
|
||||
`adb -s {{device_ID}} {{shell}}`
|
@@ -1,32 +1,32 @@
|
||||
# AdGuardHome
|
||||
|
||||
> 一款全网广告拦截与反跟踪软件。
|
||||
> 更多信息:<https://github.com/AdguardTeam/AdGuardHome>.
|
||||
> 一款用于全网络广告和跟踪阻止的软件。
|
||||
> 更多信息:<https://github.com/AdguardTeam/AdGuardHome>。
|
||||
|
||||
- 运行 AdGuard Home:
|
||||
|
||||
`AdGuardHome`
|
||||
|
||||
- 使用给定的配置文件运行 AdGuard Home:
|
||||
- 指定配置文件:
|
||||
|
||||
`AdGuardHome --config {{给定的/配置文件.yaml}}`
|
||||
`AdGuardHome --config {{path/to/AdGuardHome.yaml}}`
|
||||
|
||||
- 设置存储数据的工作目录:
|
||||
- 将数据存储在特定的工作目录中:
|
||||
|
||||
`AdGuardHome --work-dir {{工作目录/路径}}`
|
||||
`AdGuardHome --work-dir {{path/to/directory}}`
|
||||
|
||||
- 安装或卸载 AdGuard Home 的服务:
|
||||
- 作为服务安装或卸载 AdGuard Home:
|
||||
|
||||
`AdGuardHome --service {{install|uninstall}}`
|
||||
|
||||
- 启动 AdGuard Home 的服务:
|
||||
- 启动 AdGuard Home 服务:
|
||||
|
||||
`AdGuardHome --service start`
|
||||
|
||||
- 刷新 AdGuard Home 服务的设置项:
|
||||
- 重新加载 AdGuard Home 服务的配置:
|
||||
|
||||
`AdGuardHome --service reload`
|
||||
|
||||
- 停止或重启 AdGuard Home 的服务:
|
||||
- 停止或重启 AdGuard Home 服务:
|
||||
|
||||
`AdGuardHome --service {{stop|restart}}`
|
||||
`AdGuardHome --service {{stop|restart}}`
|
@@ -1,20 +1,20 @@
|
||||
# adscript
|
||||
# Adscript
|
||||
|
||||
> 用于 Adscript 文件的编译器。
|
||||
> 更多信息:<https://github.com/Amplus2/Adscript>.
|
||||
> Adscript文件的编译器。
|
||||
> 更多信息:<https://github.com/Amplus2/Adscript>。
|
||||
|
||||
- 将一个文件编译为一个对象文件:
|
||||
- 将文件编译为目标文件:
|
||||
|
||||
`adscript --output {{路径/到/文件.o}} {{路径/到/输入文件.adscript}}`
|
||||
`adscript --output {{path/to/file.o}} {{path/to/input_file.adscript}}`
|
||||
|
||||
- 编译并链接一个文件到一个独立的可执行文件:
|
||||
- 将文件编译并链接为独立可执行文件:
|
||||
|
||||
`adscript --executable --output {{路径/到/文件}} {{路径/到/输入文件.adscript}}`
|
||||
`adscript --executable --output {{path/to/file}} {{path/to/input_file.adscript}}`
|
||||
|
||||
- 将文件编译成 LLVM IR 而不是本地机器码:
|
||||
- 将文件编译为LLVM IR而不是本机机器代码:
|
||||
|
||||
`adscript --llvm-ir --output {{路径/到/文件.ll}} {{路径/到/输入文件.adscript}}`
|
||||
`adscript --llvm-ir --output {{path/to/file.ll}} {{path/to/input_file.adscript}}`
|
||||
|
||||
- 将一个文件交叉编译为一个其他 CPU 架构或操作系统的目标文件:
|
||||
- 交叉编译文件为外国CPU架构或操作系统的目标文件:
|
||||
|
||||
`adscript --target-triple {{i386-linux-elf}} --output {{路径/到/文件.o}} {{路径/到/输入文件.adscript}}`
|
||||
`adscript --target-triple {{i386-linux-elf}} --output {{path/to/file.o}} {{path/to/input_file.adscript}}`
|
@@ -1,12 +1,12 @@
|
||||
# afconvert
|
||||
|
||||
> 在 AFF 和 raw 文件格式之间进行转换。
|
||||
> 更多信息:<https://manned.org/afconvert.1>.
|
||||
> 在AFF和原始文件格式之间转换。
|
||||
> 更多信息:<https://manned.org/afconvert.1>。
|
||||
|
||||
- 使用一个特定的扩展名(默认:`aff`):
|
||||
- 使用特定扩展名(默认:`aff`):
|
||||
|
||||
`afconvert -a {{扩展名}} {{路径/到/输入文件}} {{路径/到/输出文件1 路径/到/输出文件2 ...}}`
|
||||
`afconvert -a {{扩展名}} {{输入文件的路径}} {{输出文件1的路径 输出文件2的路径 ...}}`
|
||||
|
||||
- 使用一个特定的压缩级别(默认:`7`):
|
||||
- 使用特定压缩级别(默认:`7`):
|
||||
|
||||
`afconvert -X{{0..7}} {{路径/到/输入文件}} {{路径/到/输出文件1 路径/到/输出文件2 ...}}`
|
||||
`afconvert -X{{0..7}} {{输入文件的路径}} {{输出文件1的路径 输出文件2的路径 ...}}`
|
@@ -1,32 +1,32 @@
|
||||
# ag
|
||||
|
||||
> The Silver Searcher. 类似 `ack`, 但是更快。
|
||||
> 更多信息:<https://github.com/ggreer/the_silver_searcher>.
|
||||
> 银色搜索器。像 `ack`,但旨在更快。
|
||||
> 更多信息:<https://github.com/ggreer/the_silver_searcher>。
|
||||
|
||||
- 寻找内容包含"小明"的文件,并列出所在的行数:
|
||||
- 查找包含 "foo" 的文件,并打印上下文中的匹配行:
|
||||
|
||||
`ag {{小明}}`
|
||||
`ag {{foo}}`
|
||||
|
||||
- 在指定目录中寻找内容包含 "foo" 的文件:
|
||||
- 在特定目录中查找包含 "foo" 的文件:
|
||||
|
||||
`ag {{小明}} {{指定的目录}}`
|
||||
`ag {{foo}} {{path/to/directory}}`
|
||||
|
||||
- 寻找内容包含 "foo" 的文件,但只列出文件名:
|
||||
- 查找包含 "foo" 的文件,但仅列出文件名:
|
||||
|
||||
`ag -l {{小明}}`
|
||||
`ag -l {{foo}}`
|
||||
|
||||
- 忽略大小写,寻找内容包含 "ABC" 的文件,并只输出匹配的内容,而非整行:
|
||||
- 查找不区分大小写的 "FOO",并仅打印匹配项,而不是整行:
|
||||
|
||||
`ag -i -o {{ABC}}`
|
||||
`ag -i -o {{FOO}}`
|
||||
|
||||
- 在文件名包含"小红"的文件中寻找"小明":
|
||||
- 在名称匹配 "bar" 的文件中查找 "foo":
|
||||
|
||||
`ag {{小明}} -G {{小红}}`
|
||||
`ag {{foo}} -G {{bar}}`
|
||||
|
||||
- 使用正则表达式来匹配文件内容:
|
||||
- 查找内容匹配正则表达式的文件:
|
||||
|
||||
`ag '{{^ba(r|z)$}}'`
|
||||
|
||||
- 输出文件名包含"小明"的文件名:
|
||||
- 查找名称匹配 "foo" 的文件:
|
||||
|
||||
`ag -g {{小明}}`
|
||||
`ag -g {{foo}}`
|
@@ -1,16 +1,16 @@
|
||||
# agate
|
||||
|
||||
> 一个简单的 Gemini 网络协议的服务器。
|
||||
> 更多信息:<https://github.com/mbrubeck/agate>.
|
||||
> 一个用于Gemini网络协议的简单服务器。
|
||||
> 更多信息:<https://github.com/mbrubeck/agate>。
|
||||
|
||||
- 运行并生成一个私钥和证书:
|
||||
- 运行并生成私钥和证书:
|
||||
|
||||
`agate --content {{路径/到/内容/}} --addr {{[::]:1965}} --addr {{0.0.0.0:1965}} --hostname {{example.com}} --lang {{en-US}}`
|
||||
`agate --content {{path/to/content/}} --addr {{[::]:1965}} --addr {{0.0.0.0:1965}} --hostname {{example.com}} --lang {{en-US}}`
|
||||
|
||||
- 启动服务器:
|
||||
- 运行服务器:
|
||||
|
||||
`agate {{路径/到/文件}}`
|
||||
`agate {{path/to/file}}`
|
||||
|
||||
- 显示帮助:
|
||||
|
||||
`agate -h`
|
||||
`agate -h`
|
@@ -1,13 +1,13 @@
|
||||
# age-keygen
|
||||
|
||||
> 生成 `age` 密钥对。
|
||||
> 参见:`age` 用于加密/解密文件。
|
||||
> 更多信息:<https://manned.org/age-keygen>.
|
||||
> 另请参见:用于加密/解密文件的 `age`。
|
||||
> 更多信息:<https://manned.org/age-keygen>。
|
||||
|
||||
- 生成密钥对,将其保存到未加密文件,并将公钥打印到标准输出:
|
||||
- 生成一个密钥对,保存到一个未加密的文件中,并将公钥打印到 `stdout`:
|
||||
|
||||
`age-keygen --output {{路径/到/文件}}`
|
||||
`age-keygen --output {{path/to/file}}`
|
||||
|
||||
- 将身份转换为接收者,并将公钥打印到标准输出:
|
||||
- 将身份转换为接收者,并将公钥打印到 `stdout`:
|
||||
|
||||
`age-keygen -y {{路径/到/文件}}`
|
||||
`age-keygen -y {{path/to/file}}`
|
@@ -1,25 +1,25 @@
|
||||
# age
|
||||
|
||||
> 一个简单、现代、安全的文件加密工具。
|
||||
> 参见:`age-keygen` 用于生成密钥对。
|
||||
> 更多信息:<https://github.com/FiloSottile/age>.
|
||||
> 一个简单、现代和安全的文件加密工具。
|
||||
> 另见:`age-keygen` 用于生成密钥对。
|
||||
> 更多信息:<https://github.com/FiloSottile/age>。
|
||||
|
||||
- 生成一个可以用密码短语(passphrase)解密的加密文件:
|
||||
- 生成一个可以用密码解密的加密文件:
|
||||
|
||||
`age --passphrase --output {{路径/到/已加密文件}} {{路径/到/未加密文件}}`
|
||||
`age --passphrase --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}`
|
||||
|
||||
- 用一个或多个公钥加密一个文件,这些公钥以字面形式输入:
|
||||
- 使用一个或多个作为字面值输入的公钥加密文件(重复 `--recipient` 标志以指定多个公钥):
|
||||
|
||||
`age --recipient {{公钥}} --output {{路径/到/已加密文件}} {{路径/到/未加密文件}}`
|
||||
`age --recipient {{public_key}} --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}`
|
||||
|
||||
- 用收件人文件中指定的一个或多个公钥来加密一个文件:
|
||||
- 使用在文件中指定的公钥(每行一个)加密文件给一个或多个接收者:
|
||||
|
||||
`age --recipients-file {{路径/到/收件人文件}} --output {{路径/到/已加密文件}} {{路径/到/未加密文件}}`
|
||||
`age --recipients-file {{path/to/recipients_file}} --output {{path/to/encrypted_file}} {{path/to/unencrypted_file}}`
|
||||
|
||||
- 用密码短语解密一个文件:
|
||||
- 使用密码解密文件:
|
||||
|
||||
`age --decrypt --output {{路径/到/已解密文件}} {{路径/到/已加密文件}}`
|
||||
`age --decrypt --output {{path/to/decrypted_file}} {{path/to/encrypted_file}}`
|
||||
|
||||
- 用私钥文件解密一个文件:
|
||||
- 使用私钥文件解密文件:
|
||||
|
||||
`age --decrypt --identity {{路径/到/私钥文件}} --output {{路径/到/已解密文件}} {{路径/到/已加密文件}}`
|
||||
`age --decrypt --identity {{path/to/private_key_file}} --output {{path/to/decrypted_file}} {{path/to/encrypted_file}}`
|
@@ -1,17 +1,17 @@
|
||||
# aircrack-ng
|
||||
|
||||
> 破解捕获数据包中的握手时段的 WEP 和 WPA/WPA2 密钥。
|
||||
> 是 Aircrack-ng 网络软件套件的一部分。
|
||||
> 更多信息:<https://www.aircrack-ng.org/doku.php?id=aircrack-ng>.
|
||||
> 从捕获的数据包中的握手中破解WEP和WPA/WPA2密钥。
|
||||
> 是Aircrack-ng网络软件套件的一部分。
|
||||
> 更多信息:<https://www.aircrack-ng.org/doku.php?id=aircrack-ng>。
|
||||
|
||||
- 使用字典文件破解捕获文件中的密钥:
|
||||
- 使用[w]ordlist从捕获文件中破解密钥:
|
||||
|
||||
`aircrack-ng -w {{路径/到/字典文件.txt}} {{路径/到/捕获文件.cap}}`
|
||||
`aircrack-ng -w {{path/to/wordlist.txt}} {{path/to/capture.cap}}`
|
||||
|
||||
- 使用字典文件和接入点的 ESSID 破解捕获文件中的密钥:
|
||||
- 使用[w]ordlist和接入点的[e]ssid从捕获文件中破解密钥:
|
||||
|
||||
`aircrack-ng -w {{路径/到/字典文件.txt}} -e {{essid}} {{路径/到/捕获文件.cap}}`
|
||||
`aircrack-ng -w {{path/to/wordlist.txt}} -e {{essid}} {{path/to/capture.cap}}`
|
||||
|
||||
- 使用字典文件和接入点的 MAC 地址破解捕获文件中的密钥:
|
||||
- 使用[w]ordlist和接入点的MAC地址从捕获文件中破解密钥:
|
||||
|
||||
`aircrack-ng -w {{路径/到/字典文件.txt}} --bssid {{mac}} {{路径/到/捕获文件.cap}}`
|
||||
`aircrack-ng -w {{path/to/wordlist.txt}} --bssid {{mac}} {{path/to/capture.cap}}`
|
@@ -2,24 +2,24 @@
|
||||
|
||||
> 解密 WEP、WPA 或 WPA2 加密的捕获文件。
|
||||
> 是 Aircrack-ng 网络软件套件的一部分。
|
||||
> 更多信息:<https://www.aircrack-ng.org/doku.php?id=airdecap-ng>.
|
||||
> 更多信息:<https://www.aircrack-ng.org/doku.php?id=airdecap-ng>。
|
||||
|
||||
- 从开放网络捕获文件中移除无线头,并使用接入点的 MAC 地址进行过滤:
|
||||
- 从开放网络捕获文件中移除无线报头,并使用接入点的 MAC 地址进行过滤:
|
||||
|
||||
`airdecap-ng -b {{ap_mac}} {{路径/到/捕获文件.cap}}`
|
||||
`airdecap-ng -b {{ap_mac}} {{path/to/capture.cap}}`
|
||||
|
||||
- 使用十六进制格式的密钥解密 WEP 加密的捕获文件:
|
||||
- 使用十六进制格式的密钥解密 [w]EP 加密的捕获文件:
|
||||
|
||||
`airdecap-ng -w {{hex_key}} {{路径/到/捕获文件.cap}}`
|
||||
`airdecap-ng -w {{hex_key}} {{path/to/capture.cap}}`
|
||||
|
||||
- 使用接入点的 ESSID 和密码解密 WPA/WPA2 加密的捕获文件:
|
||||
- 使用接入点的 [e]ssid 和 [p]assword 解密 WPA/WPA2 加密的捕获文件:
|
||||
|
||||
`airdecap-ng -e {{essid}} -p {{密码}} {{路径/到/捕获文件.cap}}`
|
||||
`airdecap-ng -e {{essid}} -p {{password}} {{path/to/capture.cap}}`
|
||||
|
||||
- 使用接入点的 ESSID 和密码解密 WPA/WPA2 加密的捕获文件,并保留头部信息:
|
||||
- 使用接入点的 [e]ssid 和 [p]assword 解密 WPA/WPA2 加密的捕获文件,同时保留报头:
|
||||
|
||||
`airdecap-ng -l -e {{essid}} -p {{密码}} {{路径/到/捕获文件.cap}}`
|
||||
`airdecap-ng -l -e {{essid}} -p {{password}} {{path/to/capture.cap}}`
|
||||
|
||||
- 使用接入点的 MAC 地址进行过滤,并使用接入点的 ESSID 和密码解密 WPA/WPA2 加密的捕获文件:
|
||||
- 使用接入点的 [e]ssid 和 [p]assword 解密 WPA/WPA2 加密的捕获文件,并使用其 MAC 地址进行过滤:
|
||||
|
||||
`airdecap-ng -b {{ap_mac}} -e {{essid}} -p {{密码}} {{路径/到/捕获文件.cap}}`
|
||||
`airdecap-ng -b {{ap_mac}} -e {{essid}} -p {{password}} {{path/to/capture.cap}}`
|
@@ -1,9 +1,9 @@
|
||||
# aireplay-ng
|
||||
|
||||
> 向无线网络注入数据包。
|
||||
> `aircrack-ng` 的一部分。
|
||||
> 更多信息:<https://www.aircrack-ng.org/doku.php?id=aireplay-ng>.
|
||||
> 是 `aircrack-ng` 的一部分。
|
||||
> 更多信息:<https://www.aircrack-ng.org/doku.php?id=aireplay-ng>。
|
||||
|
||||
- 向指定的接入点(AP)MAC 地址、客户端 MAC 地址和接口发送指定数量的去关联(disassociate)数据包:
|
||||
- 发送特定数量的去关联数据包,给定接入点的 MAC 地址、客户端的 MAC 地址和接口:
|
||||
|
||||
`sudo aireplay-ng --deauth {{count}} --bssid {{ap_mac}} --dmac {{client_mac}} {{interface}}`
|
||||
`sudo aireplay-ng --deauth {{count}} --bssid {{ap_mac}} --dmac {{client_mac}} {{interface}}`
|
@@ -1,21 +1,21 @@
|
||||
# airmon-ng
|
||||
|
||||
> 激活无线网络设备的监控模式。
|
||||
> 属于 `aircrack-ng` 套件的一部分。
|
||||
> 更多信息:<https://www.aircrack-ng.org/doku.php?id=airmon-ng>.
|
||||
> 在无线网络设备上激活监视模式。
|
||||
> 是 `aircrack-ng` 的一部分。
|
||||
> 更多信息:<https://www.aircrack-ng.org/doku.php?id=airmon-ng>。
|
||||
|
||||
- 列出无线设备及其状态:
|
||||
|
||||
`sudo airmon-ng`
|
||||
|
||||
- 为一个特定的设备打开监控模式:
|
||||
- 为特定设备开启监视模式:
|
||||
|
||||
`sudo airmon-ng start {{wlan0}}`
|
||||
|
||||
- 关闭使用无线设备的干扰进程:
|
||||
- 终止使用无线设备的干扰进程:
|
||||
|
||||
`sudo airmon-ng check kill`
|
||||
|
||||
- 关闭某个特定网络接口的监控模式:
|
||||
- 为特定网络接口关闭监视模式:
|
||||
|
||||
`sudo airmon-ng stop {{wlan0mon}}`
|
||||
`sudo airmon-ng stop {{wlan0mon}}`
|
@@ -1,21 +1,21 @@
|
||||
# airodump-ng
|
||||
|
||||
> 捕获数据包并显示有关无线网络的信息。
|
||||
> `aircrack-ng` 的一部分。
|
||||
> 更多信息:<https://www.aircrack-ng.org/doku.php?id=airodump-ng>.
|
||||
> 属于 `aircrack-ng`。
|
||||
> 更多信息:<https://www.aircrack-ng.org/doku.php?id=airodump-ng>。
|
||||
|
||||
- 捕获数据包并显示有关无线网络的信息:
|
||||
- 捕获数据包并显示有关 2.4GHz 频段无线网络的信息:
|
||||
|
||||
`sudo airodump-ng {{网络接口}}`
|
||||
`sudo airodump-ng {{interface}}`
|
||||
|
||||
- 捕获数据包并显示关于 5GHz 频段无线网络的信息:
|
||||
- 捕获数据包并显示有关 5GHz 频段无线网络的信息:
|
||||
|
||||
`sudo airodump-ng {{网络接口}} --band a`
|
||||
`sudo airodump-ng {{interface}} --band a`
|
||||
|
||||
- 捕获数据包并显示关于 2.4GHz 和 5GHz 频段无线网络的信息:
|
||||
- 捕获数据包并显示有关 2.4GHz 和 5GHz 频段无线网络的信息:
|
||||
|
||||
`sudo airodump-ng {{网络接口}} --band abg`
|
||||
`sudo airodump-ng {{interface}} --band abg`
|
||||
|
||||
- 捕获数据包并显示有关无线网络的信息,给定 MAC 地址和信道,并将输出保存到文件中:
|
||||
- 根据 MAC 地址和频道捕获数据包并显示有关无线网络的信息,并将输出保存到文件中:
|
||||
|
||||
`sudo airodump-ng --channel {{信道}} --write {{路径/到/文件}} --bssid {{mac}} {{网络接口}}`
|
||||
`sudo airodump-ng --channel {{channel}} --write {{path/to/file}} --bssid {{mac}} {{interface}}`
|
@@ -1,9 +1,9 @@
|
||||
# airpaste
|
||||
|
||||
> 在同一网络下共享信息和文件。
|
||||
> 更多信息:<https://github.com/mafintosh/airpaste>.
|
||||
> 使用 mDNS 在同一网络上共享消息和文件。
|
||||
> 更多信息:<https://github.com/mafintosh/airpaste>。
|
||||
|
||||
- 等待接收消息并显示接收到的信息:
|
||||
- 等待消息并在接收到时显示:
|
||||
|
||||
`airpaste`
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
|
||||
- 发送文件:
|
||||
|
||||
`airpaste < {{文件的路径}}`
|
||||
`airpaste < {{文件路径}}`
|
||||
|
||||
- 接收文件:
|
||||
|
||||
`airpaste > {{文件的路径}}`
|
||||
`airpaste > {{文件路径}}`
|
||||
|
||||
- 创建 / 加入频道:
|
||||
- 创建或加入频道:
|
||||
|
||||
`airpaste {{频道名}}`
|
||||
`airpaste {{频道名称}}`
|
@@ -1,28 +1,28 @@
|
||||
# airshare
|
||||
|
||||
> 在本地网络中传输数据的工具。
|
||||
> 更多信息:<https://airshare.rtfd.io/en/latest/cli.html>.
|
||||
> 在本地网络中的两台机器之间传输数据。
|
||||
> 更多信息:<https://airshare.rtfd.io/en/latest/cli.html>。
|
||||
|
||||
- 共享文件或目录:
|
||||
|
||||
`airshare {{code}} {{路径/到/文件或目录1 路径/到/文件或目录2 ...}}`
|
||||
`airshare {{代码}} {{路径/到/文件或目录1 路径/到/文件或目录2 ...}}`
|
||||
|
||||
- 接收文件:
|
||||
|
||||
`airshare {{code}}`
|
||||
`airshare {{代码}}`
|
||||
|
||||
- 主机接收服务器(使用此选项可以通过 Web 接口上传文件):
|
||||
- 主办接收服务器(使用此命令以便能够通过网页界面上传文件):
|
||||
|
||||
`airshare --upload {{code}}`
|
||||
`airshare --upload {{代码}}`
|
||||
|
||||
- 将文件或目录发送到接收服务器:
|
||||
|
||||
`airshare --upload {{code}} {{路径/到/文件或目录1 路径/到/文件或目录2 ...}}`
|
||||
`airshare --upload {{代码}} {{路径/到/文件或目录1 路径/到/文件或目录2 ...}}`
|
||||
|
||||
- 发送已复制到剪贴板的文件路径:
|
||||
|
||||
`airshare --file-path {{code}}`
|
||||
`airshare --file-path {{代码}}`
|
||||
|
||||
- 接收文件并将其复制到剪贴板:
|
||||
|
||||
`airshare --clip-receive {{code}}`
|
||||
`airshare --clip-receive {{代码}}`
|
@@ -1,20 +1,20 @@
|
||||
# ajson
|
||||
|
||||
> 对 JSON 对象执行 JSONPath 操作。
|
||||
> 更多信息:<https://github.com/spyzhov/ajson>.
|
||||
> 在 JSON 对象上执行 JSONPath。
|
||||
> 更多信息:<https://github.com/spyzhov/ajson>。
|
||||
|
||||
- 从文件中读取 JSON 并执行指定的 JSONPath 表达式:
|
||||
|
||||
`ajson '{{$..json[?(@.path)]}}' {{路径/到/文件.json}}`
|
||||
`ajson '{{$..json[?(@.path)]}}' {{path/to/file.json}}`
|
||||
|
||||
- 从标准输入中读取 JSON 并执行指定的 JSONPath 表达式:
|
||||
- 从 `stdin` 中读取 JSON 并执行指定的 JSONPath 表达式:
|
||||
|
||||
`cat {{路径/到/文件.json}} | ajson '{{$..json[?(@.path)]}}'`
|
||||
`cat {{path/to/file.json}} | ajson '{{$..json[?(@.path)]}}'`
|
||||
|
||||
- 从 URL 中获取 JSON 并计算指定的 JSONPath 表达式:
|
||||
- 从 URL 中读取 JSON 并评估指定的 JSONPath 表达式:
|
||||
|
||||
`ajson '{{avg($..price)}}' '{{https://example.com/api/}}'`
|
||||
|
||||
- 读取一些简单的 JSON 并计算一个值:
|
||||
|
||||
`echo '{{3}}' | ajson '{{2 * pi * $}}'`
|
||||
`echo '{{3}}' | ajson '{{2 * pi * $}}'`
|
@@ -1,24 +1,24 @@
|
||||
# alacritty
|
||||
|
||||
> 跨平台,GPU 加速的终端模拟器。
|
||||
> 更多信息:<https://github.com/alacritty/alacritty>.
|
||||
> 跨平台,GPU 加速的终端仿真器。
|
||||
> 更多信息:<https://github.com/alacritty/alacritty>。
|
||||
|
||||
- 打开一个新的 Alacritty 窗口:
|
||||
|
||||
`alacritty`
|
||||
|
||||
- 运行在指定目录中:
|
||||
- 在特定目录下运行:
|
||||
|
||||
`alacritty --working-directory {{路径}}`
|
||||
`alacritty --working-directory {{path/to/directory}}`
|
||||
|
||||
- 在新的 Alacritty 窗口中运行命令:
|
||||
- 在新的 Alacritty 窗口中[e]xecute一个命令:
|
||||
|
||||
`alacritty -e {{命令}}`
|
||||
`alacritty -e {{command}}`
|
||||
|
||||
- 指定备用配置文件(默认在 `$XDG_CONFIG_HOME/alacritty/alacritty.toml`):
|
||||
- 使用备用配置文件(默认使用 `$XDG_CONFIG_HOME/alacritty/alacritty.toml`):
|
||||
|
||||
`alacritty --config-file {{路径/config.toml}}`
|
||||
`alacritty --config-file {{path/to/config.toml}}`
|
||||
|
||||
- 在启用实时配置重新加载的情况下运行(默认情况下也可以在 `alacritty.toml` 中启用):
|
||||
- 运行时启用实时配置重载(也可以在 `alacritty.toml` 中默认启用):
|
||||
|
||||
`alacritty --live-config-reload --config-file {{路径/config.toml}}`
|
||||
`alacritty --live-config-reload --config-file {{path/to/config.toml}}`
|
@@ -1,11 +1,12 @@
|
||||
# alex
|
||||
|
||||
> 捕捉文本中的不敏感、不考虑他人的写作风格。它帮助您找出文本中的性别偏向、极端化、种族相关、宗教考虑不周等不平等表达。
|
||||
> 更多信息:<https://github.com/get-alex/alex>.
|
||||
> 捕捉不敏感、不体贴的写作。
|
||||
> 它帮助你在文本中找到性别偏见、极化、与种族相关、宗教不体贴或其他不平等的措辞。
|
||||
> 更多信息:<https://github.com/get-alex/alex>。
|
||||
|
||||
- 从标准输入分析文本:
|
||||
- 从 `stdin` 分析文本:
|
||||
|
||||
`echo {{His network looks good}} | alex --stdin`
|
||||
`echo {{他的网络看起来不错}} | alex --stdin`
|
||||
|
||||
- 分析当前目录中的所有文件:
|
||||
|
||||
@@ -13,8 +14,8 @@
|
||||
|
||||
- 分析特定文件:
|
||||
|
||||
`alex {{路径/到/文件.md}}`
|
||||
`alex {{path/to/file.md}}`
|
||||
|
||||
- 分析除了 `示例文件.md` 之外的所有 Markdown 文件:
|
||||
- 分析所有 Markdown 文件,除了 `example.md`:
|
||||
|
||||
`alex *.md !{{示例文件.md}}`
|
||||
`alex *.md !{{example.md}}`
|
@@ -1,29 +1,29 @@
|
||||
# alias
|
||||
# 别名
|
||||
|
||||
> 创建别名——用给定的字符串指代特定的命令。
|
||||
> 别名只会在当前的 shell 会话中生效,除非它们在 shell 的配置文件中被定义,例如`~/.bashrc`。
|
||||
> 更多信息:<https://tldp.org/LDP/abs/html/aliases.html>.
|
||||
> 创建别名 - 被命令字符串替换的词。
|
||||
> 别名在当前 shell 会话中过期,除非在 shell 的配置文件中定义,例如 `~/.bashrc`。
|
||||
> 更多信息:<https://tldp.org/LDP/abs/html/aliases.html>。
|
||||
|
||||
- 列出所有别名:
|
||||
|
||||
`alias`
|
||||
|
||||
- 创建一个通用的别名:
|
||||
- 创建一个通用别名:
|
||||
|
||||
`alias {{别名}}="{{命令}}"`
|
||||
`alias {{word}}="{{command}}"`
|
||||
|
||||
- 通过给定的别名查看它所指代的命令:
|
||||
- 查看与给定别名关联的命令:
|
||||
|
||||
`alias {{别名}}`
|
||||
`alias {{word}}`
|
||||
|
||||
- 移除一个别名:
|
||||
- 移除已别名的命令:
|
||||
|
||||
`unalias {{别名}}`
|
||||
`unalias {{word}}`
|
||||
|
||||
- 将 `rm` 转换为交互式命令:
|
||||
- 将 `rm` 变为交互式命令:
|
||||
|
||||
`alias {{rm}}="{{rm --interactive}}"`
|
||||
|
||||
- 创建别名 `la` 来指代 `ls --all`:
|
||||
- 创建 `la` 作为 `ls --all` 的快捷方式:
|
||||
|
||||
`alias {{la}}="{{ls --all}}"`
|
||||
`alias {{la}}="{{ls --all}}"`
|
28
pages.zh/common/amass-enum.md
Normal file
28
pages.zh/common/amass-enum.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# amass enum
|
||||
|
||||
> 查找一个域的子域名。
|
||||
> 更多信息:<https://github.com/owasp-amass/amass/blob/master/doc/user_guide.md#the-enum-subcommand>。
|
||||
|
||||
- 查找一个[d]omain的子域名(被动):
|
||||
|
||||
`amass enum -d {{domain_name}}`
|
||||
|
||||
- 查找一个[d]omain的子域名并主动验证,尝试解析找到的子域名:
|
||||
|
||||
`amass enum -active -d {{domain_name}} -p {{80,443,8080}}`
|
||||
|
||||
- 对子[d]omains进行暴力搜索:
|
||||
|
||||
`amass enum -brute -d {{domain_name}}`
|
||||
|
||||
- 将结果保存到文本文件中:
|
||||
|
||||
`amass enum -o {{output_file}} -d {{domain_name}}`
|
||||
|
||||
- 将终端输出保存到文件,并将其他详细输出保存到目录中:
|
||||
|
||||
`amass enum -o {{output_file}} -dir {{path/to/directory}} -d {{domain_name}}`
|
||||
|
||||
- 列出所有可用的数据源:
|
||||
|
||||
`amass enum -list`
|
32
pages.zh/common/amass-intel.md
Normal file
32
pages.zh/common/amass-intel.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# 收集情报
|
||||
|
||||
> 收集关于一个组织的开放源代码情报,例如根域名和自治系统号(ASN)。
|
||||
> 更多信息:<https://github.com/owasp-amass/amass/blob/master/doc/user_guide.md#the-intel-subcommand>。
|
||||
|
||||
- 在一个IP地址范围内查找根域名:
|
||||
|
||||
`amass intel -addr {{192.168.0.1-254}}`
|
||||
|
||||
- 使用主动侦查方法:
|
||||
|
||||
`amass intel -active -addr {{192.168.0.1-254}}`
|
||||
|
||||
- 查找与某个域名相关的根域名:
|
||||
|
||||
`amass intel -whois -d {{domain_name}}`
|
||||
|
||||
- 查找属于某个组织的ASN:
|
||||
|
||||
`amass intel -org {{organisation_name}}`
|
||||
|
||||
- 查找属于给定自治系统编号的根域名:
|
||||
|
||||
`amass intel -asn {{asn}}`
|
||||
|
||||
- 将结果保存到文本文件:
|
||||
|
||||
`amass intel -o {{output_file}} -whois -d {{domain_name}}`
|
||||
|
||||
- 列出所有可用的数据源:
|
||||
|
||||
`amass intel -list`
|
@@ -1,21 +1,21 @@
|
||||
# amass
|
||||
|
||||
> 深度攻击面探测与资产发现工具。
|
||||
> 此命令也有关于其子命令的文件,例如:`intel`.
|
||||
> 更多信息:<https://github.com/owasp-amass/amass>.
|
||||
> 深入的攻击面映射和资产发现工具。
|
||||
> 一些子命令如 `intel` 有自己的使用文档。
|
||||
> 更多信息:<https://github.com/owasp-amass/amass>。
|
||||
|
||||
- 执行 Amass 子命令:
|
||||
|
||||
`amass {{intel|enum}} {{options}}`
|
||||
|
||||
- 展示帮助信息:
|
||||
- 显示帮助:
|
||||
|
||||
`amass -help`
|
||||
|
||||
- 展示子命令帮助信息:
|
||||
- 显示 Amass 子命令的帮助:
|
||||
|
||||
`amass {{intel|enum}} -help`
|
||||
|
||||
- 查看 Amass 版本:
|
||||
- 显示版本:
|
||||
|
||||
`amass -version`
|
||||
`amass -version`
|
@@ -1,16 +1,16 @@
|
||||
# androguard
|
||||
|
||||
> 使用 Python 编写的一款针对安卓应用的逆向工程工具。
|
||||
> 更多信息:<https://github.com/androguard/androguard>.
|
||||
> 反向工程 Android 应用程序。用 Python 编写。
|
||||
> 更多信息: <https://github.com/androguard/androguard>。
|
||||
|
||||
- 展示 Android manifest 清单文件:
|
||||
- 显示 Android 应用清单:
|
||||
|
||||
`androguard axml {{路径/至/应用.apk}}`
|
||||
`androguard axml {{path/to/app.apk}}`
|
||||
|
||||
- 展示 app 元数据(版本和 app ID):
|
||||
- 显示应用元数据(版本和应用 ID):
|
||||
|
||||
`androguard apkid {{路径/至/应用.apk}}`
|
||||
`androguard apkid {{path/to/app.apk}}`
|
||||
|
||||
- 反编译 Java 代码:
|
||||
- 反编译应用的 Java 代码:
|
||||
|
||||
`androguard decompile {{路径/至/应用.apk}} --output {{路径/至/目录}}`
|
||||
`androguard decompile {{path/to/app.apk}} --output {{path/to/directory}}`
|
@@ -1,28 +1,28 @@
|
||||
# ani-cli
|
||||
|
||||
> 一个用于浏览和观看动漫的命令行工具。
|
||||
> 更多信息:<https://github.com/pystardust/ani-cli>.
|
||||
> 一个用于浏览和观看动画的命令行工具。
|
||||
> 更多信息:<https://github.com/pystardust/ani-cli>。
|
||||
|
||||
- 按名称搜索动漫:
|
||||
- 按名称搜索动画:
|
||||
|
||||
`ani-cli "{{动漫名称}}"`
|
||||
`ani-cli "{{anime_name}}"`
|
||||
|
||||
- 下载动漫剧集:
|
||||
- [d]ownload 下载剧集:
|
||||
|
||||
`ani-cli -d "{{动漫名称}}"`
|
||||
`ani-cli -d "{{anime_name}}"`
|
||||
|
||||
- 使用 VLC 播放器播放:
|
||||
- 使用 [v]LC 作为媒体播放器:
|
||||
|
||||
`ani-cli -v "{{动漫名称}}"`
|
||||
`ani-cli -v "{{anime_name}}"`
|
||||
|
||||
- 指定要观看的剧集:
|
||||
- 观看特定的 [e]pisode 剧集:
|
||||
|
||||
`ani-cli -e {{剧集序号}} "{{动漫名称}}"`
|
||||
`ani-cli -e {{episode_number}} "{{anime_name}}"`
|
||||
|
||||
- 从历史记录中继续观看动漫:
|
||||
- [c]ontinue 从历史记录中继续观看动画:
|
||||
|
||||
`ani-cli -c`
|
||||
|
||||
- 更新 `ani-cli`:
|
||||
- [U]pdate 更新 `ani-cli`:
|
||||
|
||||
`ani-cli -U`
|
||||
`ani-cli -U`
|
37
pages.zh/common/animdl.md
Normal file
37
pages.zh/common/animdl.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# animdl
|
||||
|
||||
> 一个高效、强大且快速的动漫抓取工具。
|
||||
> 另见: `ani-cli`。
|
||||
> 更多信息: <https://github.com/justfoolingaround/animdl>。
|
||||
|
||||
- 下载特定动漫:
|
||||
|
||||
`animdl download {{anime_title}}`
|
||||
|
||||
- 通过指定剧集范围下载特定动漫:
|
||||
|
||||
`animdl download {{anime_title}} {{-r|--range}} {{start_episode}}-{{end_episode}}`
|
||||
|
||||
- 通过指定下载目录下载特定动漫:
|
||||
|
||||
`animdl download {{anime_title}} {{-d|--download-dir}} {{path/to/download_directory}}`
|
||||
|
||||
- 获取特定动漫的流媒体网址:
|
||||
|
||||
`animdl grab {{anime_title}}`
|
||||
|
||||
- 显示下周即将上映的动漫时间表:
|
||||
|
||||
`animdl schedule`
|
||||
|
||||
- 搜索特定动漫:
|
||||
|
||||
`animdl search {{anime_title}}`
|
||||
|
||||
- 播放特定动漫:
|
||||
|
||||
`animdl stream {{anime_title}}`
|
||||
|
||||
- 播放特定动漫的最新剧集:
|
||||
|
||||
`animdl stream {{anime_title}} {{-s|--special}} latest`
|
@@ -1,20 +1,20 @@
|
||||
# anki
|
||||
|
||||
> 强大、智能的记忆卡片软件。
|
||||
> 更多信息:<https://docs.ankiweb.net>.
|
||||
> 强大且智能的抽认卡程序。
|
||||
> 更多信息:<https://docs.ankiweb.net>。
|
||||
|
||||
- 启动 `anki`:
|
||||
- 启动图形用户界面:
|
||||
|
||||
`anki`
|
||||
|
||||
- 用一个特定的配置文件启动 `anki`:
|
||||
- 使用特定的 [p]rofile:
|
||||
|
||||
`anki -p {{配置文件名称}}`
|
||||
`anki -p {{profile_name}}`
|
||||
|
||||
- 以特定语言启动 `anki`:
|
||||
- 使用特定的 [l]anguage:
|
||||
|
||||
`anki -l {{语言}}`
|
||||
`anki -l {{language}}`
|
||||
|
||||
- 从一个特定的目录而不是默认的(`~/Anki`)启动`anki`:
|
||||
- 使用非默认目录(默认为 `~/Anki`):
|
||||
|
||||
`anki -b {{路径/到/目录}}`
|
||||
`anki -b {{path/to/directory}}`
|
29
pages.zh/common/ansible-doc.md
Normal file
29
pages.zh/common/ansible-doc.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# ansible-doc
|
||||
|
||||
> 显示已安装的 Ansible 库中模块的信息。
|
||||
> 显示插件的简要列表及其简短描述。
|
||||
> 更多信息:<https://docs.ansible.com/ansible/latest/cli/ansible-doc.html>。
|
||||
|
||||
- 列出可用的操作插件(模块):
|
||||
|
||||
`ansible-doc --list`
|
||||
|
||||
- 列出特定类型的可用插件:
|
||||
|
||||
`ansible-doc --type {{become|cache|callback|cliconf|connection|...}} --list`
|
||||
|
||||
- 显示特定操作插件(模块)的信息:
|
||||
|
||||
`ansible-doc {{plugin_name}}`
|
||||
|
||||
- 显示特定类型插件的信息:
|
||||
|
||||
`ansible-doc --type {{become|cache|callback|cliconf|connection|...}} {{plugin_name}}`
|
||||
|
||||
- 显示操作插件(模块)的剧本片段:
|
||||
|
||||
`ansible-doc --snippet {{plugin_name}}`
|
||||
|
||||
- 以 JSON 格式显示操作插件(模块)的信息:
|
||||
|
||||
`ansible-doc --json {{plugin_name}}`
|
@@ -1,32 +1,32 @@
|
||||
# ansible-galaxy
|
||||
|
||||
> 执行与 Ansible 角色和集合相关的各种操作。
|
||||
> 更多信息:<https://docs.ansible.com/ansible/latest/cli/ansible-galaxy.html>.
|
||||
> 执行各种与 Ansible 角色和集合相关的操作。
|
||||
> 更多信息:<https://docs.ansible.com/ansible/latest/cli/ansible-galaxy.html>。
|
||||
|
||||
- 列出已安装的角色或集合:
|
||||
|
||||
`ansible-galaxy {{role|collection}} list`
|
||||
|
||||
- 使用不同的详细等级搜索角色(`-v` 应该放在最后):
|
||||
- 以不同的详细程度搜索角色(`-v` 应该在最后指定):
|
||||
|
||||
`ansible-galaxy role search {{关键字}} -v{{vvvvv}}`
|
||||
`ansible-galaxy role search {{keyword}} -v{{vvvvv}}`
|
||||
|
||||
- 安装或移除角色:
|
||||
|
||||
`ansible-galaxy role {{install|remove}} {{角色名称1 角色名称2 ...}}`
|
||||
`ansible-galaxy role {{install|remove}} {{role_name1 role_name2 ...}}`
|
||||
|
||||
- 创建一个新角色:
|
||||
|
||||
`ansible-galaxy role init {{角色名称}}`
|
||||
`ansible-galaxy role init {{role_name}}`
|
||||
|
||||
- 获取关于角色的信息:
|
||||
- 获取角色的信息:
|
||||
|
||||
`ansible-galaxy role info {{角色名称}}`
|
||||
`ansible-galaxy role info {{role_name}}`
|
||||
|
||||
- 安装或移除集合:
|
||||
|
||||
`ansible-galaxy collection {{install|remove}} {{集合名称1 集合名称2 ...}}`
|
||||
`ansible-galaxy collection {{install|remove}} {{collection_name1 collection_name2 ...}}`
|
||||
|
||||
- 显示关于角色或集合的帮助信息:
|
||||
|
||||
`ansible-galaxy {{role|collection}} {{-h|--help}}`
|
||||
`ansible-galaxy {{role|collection}} {{-h|--help}}`
|
21
pages.zh/common/ansible-inventory.md
Normal file
21
pages.zh/common/ansible-inventory.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# ansible-inventory
|
||||
|
||||
> 显示或转储 Ansible 库存。
|
||||
> 另请参见:`ansible`。
|
||||
> 更多信息:<https://docs.ansible.com/ansible/latest/cli/ansible-inventory.html>。
|
||||
|
||||
- 显示默认库存:
|
||||
|
||||
`ansible-inventory --list`
|
||||
|
||||
- 显示自定义库存:
|
||||
|
||||
`ansible-inventory --list --inventory {{path/to/file_or_script_or_directory}}`
|
||||
|
||||
- 以 YAML 格式显示默认库存:
|
||||
|
||||
`ansible-inventory --list --yaml`
|
||||
|
||||
- 将默认库存转储到文件:
|
||||
|
||||
`ansible-inventory --list --output {{path/to/file}}`
|
@@ -1,32 +1,32 @@
|
||||
# ansible-playbook
|
||||
|
||||
> 通过 SSH 协议在远程计算机上执行 playbook 中定义的任务。
|
||||
> 更多信息:<https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html>.
|
||||
> 在远程机器上通过 SSH 执行 playbook 中定义的任务。
|
||||
> 更多信息:<https://docs.ansible.com/ansible/latest/cli/ansible-playbook.html>。
|
||||
|
||||
- 执行 playbook 中的任务:
|
||||
- 运行 playbook 中的任务:
|
||||
|
||||
`ansible-playbook {{playbook}}`
|
||||
|
||||
- 使用自定义主机清单执行 playbook 中的任务:
|
||||
- 使用自定义主机 [i]nventory 运行 playbook 中的任务:
|
||||
|
||||
`ansible-playbook {{playbook}} -i {{清单文件}}`
|
||||
`ansible-playbook {{playbook}} -i {{inventory_file}}`
|
||||
|
||||
- 使用通过命令行定义的额外变量执行 playbook 中的任务:
|
||||
- 使用命令行定义的 [e]xtra 变量运行 playbook 中的任务:
|
||||
|
||||
`ansible-playbook {{playbook}} -e "{{变量1}}={{值1}} {{变量2}}={{值2}}"`
|
||||
`ansible-playbook {{playbook}} -e "{{variable1}}={{value1}} {{variable2}}={{value2}}"`
|
||||
|
||||
- 使用在 JSON 文件中定义的额外变量执行 playbook 中的任务:
|
||||
- 使用 JSON 文件中定义的 [e]xtra 变量运行 playbook 中的任务:
|
||||
|
||||
`ansible-playbook {{playbook}} -e "@{{变量.json}}"`
|
||||
`ansible-playbook {{playbook}} -e "@{{variables.json}}"`
|
||||
|
||||
- 执行 playbook 中的指定标签的任务:
|
||||
- 针对给定标签运行 playbook 中的任务:
|
||||
|
||||
`ansible-playbook {{playbook}} --tags {{标签1,标签2}}`
|
||||
`ansible-playbook {{playbook}} --tags {{tag1,tag2}}`
|
||||
|
||||
- 从指定任务开始执行 playbook 中的任务:
|
||||
- 从特定任务开始运行 playbook 中的任务:
|
||||
|
||||
`ansible-playbook {{playbook}} --start-at {{任务名称}}`
|
||||
`ansible-playbook {{playbook}} --start-at {{task_name}}`
|
||||
|
||||
- 以不做任何更改(试执行)方式执行 playbook 中的任务:
|
||||
- 在不做任何更改的情况下运行 playbook 中的任务(干运行):
|
||||
|
||||
`ansible-playbook {{playbook}} --check --diff`
|
||||
`ansible-playbook {{playbook}} --check --diff`
|
20
pages.zh/common/ansible-pull.md
Normal file
20
pages.zh/common/ansible-pull.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# ansible-pull
|
||||
|
||||
> 从版本控制系统(VCS)仓库中拉取 Ansible 剧本并在本地主机上执行它们。
|
||||
> 更多信息:<https://docs.ansible.com/ansible/latest/cli/ansible-pull.html>。
|
||||
|
||||
- 从 VCS 拉取一个剧本并执行默认的 local.yml 剧本:
|
||||
|
||||
`ansible-pull -U {{repository_url}}`
|
||||
|
||||
- 从 VCS 拉取一个剧本并执行特定的剧本:
|
||||
|
||||
`ansible-pull -U {{repository_url}} {{playbook}}`
|
||||
|
||||
- 从 VCS 在特定分支拉取一个剧本并执行特定的剧本:
|
||||
|
||||
`ansible-pull -U {{repository_url}} -C {{branch}} {{playbook}}`
|
||||
|
||||
- 从 VCS 拉取一个剧本,指定主机文件并执行特定的剧本:
|
||||
|
||||
`ansible-pull -U {{repository_url}} -i {{hosts_file}} {{playbook}}`
|
28
pages.zh/common/ansible-vault.md
Normal file
28
pages.zh/common/ansible-vault.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# ansible-vault
|
||||
|
||||
> 在 Ansible 项目中加密和解密值、数据结构和文件。
|
||||
> 更多信息:<https://docs.ansible.com/ansible/latest/user_guide/vault.html#id17>。
|
||||
|
||||
- 创建一个新的加密保险库文件,并提示输入密码:
|
||||
|
||||
`ansible-vault create {{vault_file}}`
|
||||
|
||||
- 使用保险库密钥文件创建一个新的加密保险库文件:
|
||||
|
||||
`ansible-vault create --vault-password-file {{password_file}} {{vault_file}}`
|
||||
|
||||
- 使用可选的密码文件加密现有文件:
|
||||
|
||||
`ansible-vault encrypt --vault-password-file {{password_file}} {{vault_file}}`
|
||||
|
||||
- 使用 Ansible 的加密字符串格式加密字符串,并显示交互式提示:
|
||||
|
||||
`ansible-vault encrypt_string`
|
||||
|
||||
- 查看加密文件,使用密码文件进行解密:
|
||||
|
||||
`ansible-vault view --vault-password-file {{password_file}} {{vault_file}}`
|
||||
|
||||
- 使用新的密码文件重新密钥已经加密的保险库文件:
|
||||
|
||||
`ansible-vault rekey --vault-password-file {{old_password_file}} --new-vault-password-file {{new_password_file}} {{vault_file}}`
|
@@ -1,33 +1,33 @@
|
||||
# ansible
|
||||
|
||||
> 通过 SSH 协议远程管理计算机组。使用 `/etc/ansible/hosts` 文件来添加组 / 主机。
|
||||
> 此命令也有关于其子命令的文件,例如:`galaxy`.
|
||||
> 更多信息:<https://www.ansible.com/>.
|
||||
> 通过 SSH 远程管理计算机组。(使用 `/etc/ansible/hosts` 文件添加新组/主机)。
|
||||
> 一些子命令如 `galaxy` 有自己的使用文档。
|
||||
> 更多信息:<https://www.ansible.com/>。
|
||||
|
||||
- 列出给定组下的所有主机:
|
||||
- 列出属于某个组的主机:
|
||||
|
||||
`ansible {{组}} --list-hosts`
|
||||
`ansible {{group}} --list-hosts`
|
||||
|
||||
- 调用 ping 模块来 ping 一组主机:
|
||||
- 通过调用 ping [模块] 向一组主机发送 Ping:
|
||||
|
||||
`ansible {{组}} -m ping`
|
||||
`ansible {{group}} -m ping`
|
||||
|
||||
- 通过调用安装模块来显示关于一组主机的信息:
|
||||
- 通过调用 setup [模块] 显示有关一组主机的信息:
|
||||
|
||||
`ansible {{组}} -m setup`
|
||||
`ansible {{group}} -m setup`
|
||||
|
||||
- 调用命令模块并使用给定的参数来对一组主机执行命令:
|
||||
- 通过调用命令模块并传递参数在一组主机上执行命令:
|
||||
|
||||
`ansible {{组}} -m command -a '{{命令}}'`
|
||||
`ansible {{group}} -m command -a '{{my_command}}'`
|
||||
|
||||
- 以管理员权限执行一个命令:
|
||||
- 以管理员权限执行命令:
|
||||
|
||||
`ansible {{组}} --become --ask-become-pass -m command -a '{{命令}}'`
|
||||
`ansible {{group}} --become --ask-become-pass -m command -a '{{my_command}}'`
|
||||
|
||||
- 使用自定义的清单文件执行一个命令:
|
||||
- 使用自定义清单文件执行命令:
|
||||
|
||||
`ansible {{组}} -i {{清单文件}} -m command -a '{{命令}}'`
|
||||
`ansible {{group}} -i {{inventory_file}} -m command -a '{{my_command}}'`
|
||||
|
||||
- 列出清单中的组:
|
||||
|
||||
`ansible localhost -m debug -a '{{var=groups.keys()}}'`
|
||||
`ansible localhost -m debug -a '{{var=groups.keys()}}'`
|
@@ -1,16 +1,16 @@
|
||||
# ansiweather
|
||||
|
||||
> 一个 shell 脚本,用于在终端中显示当前的天气状况。
|
||||
> 更多信息:<https://github.com/fcambus/ansiweather>.
|
||||
> 在你的终端中显示当前天气状况。
|
||||
> 更多信息:<https://github.com/fcambus/ansiweather>。
|
||||
|
||||
- 使用公制单位显示 Rzeszow, Poland 接下来 5 天的天气预报:
|
||||
- 使用公制单位显示特定地点接下来七天的天气预报:
|
||||
|
||||
`ansiweather -u metric -f 7 -l {{Rzeszow,PL}}`
|
||||
|
||||
- 显示带符号和日光数据信息的天气预报:
|
||||
- 显示接下来五天的天气预报,包含符号和白天数据,针对你当前的位置:
|
||||
|
||||
`ansiweather -F -s true -d true`
|
||||
|
||||
- 显示带风力等级和湿度信息的天气预报:
|
||||
- 显示你当前地点的今天的风速和湿度数据:
|
||||
|
||||
`ansiweather -w true -h true`
|
||||
`ansiweather -w true -h true`
|
@@ -1,16 +1,15 @@
|
||||
# ant
|
||||
# Ant
|
||||
|
||||
> Apache Ant。
|
||||
> 用于构建和管理基于 Java 的项目的工具。
|
||||
> 更多信息:<https://ant.apache.org>.
|
||||
> Apache Ant:构建和管理基于Java的项目。
|
||||
> 更多信息:<https://ant.apache.org>。
|
||||
|
||||
- 用默认的构建文件 `build.xml` 构建一个项目:
|
||||
- 使用默认构建文件 `build.xml` 构建项目:
|
||||
|
||||
`ant`
|
||||
|
||||
- 使用 `build.xml` 以外的构建文件构建项目:
|
||||
- 使用其他构建文件 [f]ile 而非 `build.xml` 构建项目:
|
||||
|
||||
`ant -f {{构建文件.xml}}`
|
||||
`ant -f {{buildfile.xml}}`
|
||||
|
||||
- 打印该项目可能的目标信息:
|
||||
|
||||
@@ -20,6 +19,6 @@
|
||||
|
||||
`ant -d`
|
||||
|
||||
- 执行所有不依赖失败目标的目标:
|
||||
- 执行所有不依赖于失败目标的目标:
|
||||
|
||||
`ant -k`
|
||||
`ant -k`
|
16
pages.zh/common/antibody.md
Normal file
16
pages.zh/common/antibody.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# antibody
|
||||
|
||||
> "最快的" shell 插件管理器。
|
||||
> 更多信息:<https://getantibody.github.io>。
|
||||
|
||||
- 将所有插件捆绑以进行静态加载:
|
||||
|
||||
`antibody bundle < {{~/.zsh_plugins.txt}} > {{~/.zsh_plugins.sh}}`
|
||||
|
||||
- 更新所有捆绑包:
|
||||
|
||||
`antibody update`
|
||||
|
||||
- 列出所有已安装的插件:
|
||||
|
||||
`antibody list`
|
12
pages.zh/common/anytopnm.md
Normal file
12
pages.zh/common/anytopnm.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# anytopnm
|
||||
|
||||
> 将任意类型的图像文件转换为常见的图像格式。
|
||||
> 更多信息:<https://netpbm.sourceforge.net/doc/anytopnm.html>。
|
||||
|
||||
- 将输入图像转换为PBM、PGM或PPM格式,无论输入类型如何:
|
||||
|
||||
`anytopnm {{path/to/input}} > {{path/to/output.pnm}}`
|
||||
|
||||
- 显示版本:
|
||||
|
||||
`anytopnm -version`
|
@@ -1,24 +1,24 @@
|
||||
# apg
|
||||
|
||||
> 生成任意复杂度的随机密码。
|
||||
> 更多信息:<https://manned.org/apg>.
|
||||
> 创建任意复杂的随机密码。
|
||||
> 更多信息:<https://manned.org/apg>。
|
||||
|
||||
- 生成随机密码(默认密码长度为 8 位):
|
||||
- 创建随机密码(默认密码长度为8):
|
||||
|
||||
`apg`
|
||||
|
||||
- 生成密码,包含至少 1 个符号 (S), 1 个数字 (N), 1 个大写字母 (C), 1 个小写字母 (L):
|
||||
- 创建一个至少包含1个符号(S)、1个数字(N)、1个大写字母(C)、1个小写字母(L)的密码:
|
||||
|
||||
`apg -M SNCL`
|
||||
|
||||
- 生成 16 个字符的密码:
|
||||
- 创建一个16个字符的密码:
|
||||
|
||||
`apg -m {{16}}`
|
||||
|
||||
- 生成最大长度为 16 位的密码:
|
||||
- 创建一个最大长度为16的密码:
|
||||
|
||||
`apg -x {{16}}`
|
||||
|
||||
- 生成未出现在字典中的密码(必须提供字典文件):
|
||||
- 创建一个不在字典中的密码(需要提供字典文件):
|
||||
|
||||
`apg -r {{路径/到/字典文件}}`
|
||||
`apg -r {{path/to/dictionary_file}}`
|
16
pages.zh/common/apkeep.md
Normal file
16
pages.zh/common/apkeep.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# apkeep
|
||||
|
||||
> 从多个来源下载APK文件。
|
||||
> 更多信息:<https://github.com/EFForg/apkeep>。
|
||||
|
||||
- 将APK文件下载到指定目录:
|
||||
|
||||
`apkeep --app {{com.example.application}} {{path/to/directory}}`
|
||||
|
||||
- 列出所有可供下载的版本:
|
||||
|
||||
`apkeep --app {{com.example.application}} --list-versions {{path/to/directory}}`
|
||||
|
||||
- 指定下载来源的商店:
|
||||
|
||||
`apkeep --app {{com.example.application}} --download-source {{apk-pure|google-play|f-droid|huawei-app-gallery}} {{path/to/directory}}`
|
17
pages.zh/common/apkleaks.md
Normal file
17
pages.zh/common/apkleaks.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# apkleaks
|
||||
|
||||
> 从APK文件中暴露URI、端点和密钥。
|
||||
> 注意:APKLeaks利用`jadx`反汇编器来反编译APK文件。
|
||||
> 更多信息:<https://github.com/dwisiswant0/apkleaks>。
|
||||
|
||||
- 扫描APK [f]ile以查找URI、端点和密钥:
|
||||
|
||||
`apkleaks --file {{path/to/file.apk}}`
|
||||
|
||||
- 扫描并将 [o]utput保存到特定文件:
|
||||
|
||||
`apkleaks --file {{path/to/file.apk}} --output {{path/to/output.txt}}`
|
||||
|
||||
- 传递`jadx`反汇编器的 [a]rguments:
|
||||
|
||||
`apkleaks --file {{path/to/file.apk}} --args "{{--threads-count 5 --deobf}}"`
|
@@ -1,16 +1,16 @@
|
||||
# apktool
|
||||
|
||||
> APK 文件反编译工具。
|
||||
> 反向工程 APK 文件。
|
||||
> 更多信息:<https://ibotpeaches.github.io/Apktool/>.
|
||||
|
||||
- 反编译:
|
||||
- 解码 APK 文件:
|
||||
|
||||
`apktool d {{应用.apk}}`
|
||||
`apktool d {{path/to/file.apk}}`
|
||||
|
||||
- 将一个文件夹打包为 apk 文件:
|
||||
- 从目录构建 APK 文件:
|
||||
|
||||
`apktool b {{路径/到/目录}}`
|
||||
`apktool b {{path/to/directory}}`
|
||||
|
||||
- 安装并存储框架:
|
||||
|
||||
`apktool if {{框架.apk}}`
|
||||
`apktool if {{path/to/framework.apk}}`
|
@@ -1,17 +1,17 @@
|
||||
# apm
|
||||
|
||||
> Atom 编辑器的包管理工具。
|
||||
> 参见 `atom`.
|
||||
> 更多信息:<https://github.com/atom/apm>.
|
||||
> Atom 编辑器包管理器。
|
||||
> 另见:`atom`。
|
||||
> 更多信息:<https://github.com/atom/apm>。
|
||||
|
||||
- 下载包:<http://atom.io/packages> 和主题 <http://atom.io/themes>:
|
||||
- 从 <http://atom.io/packages> 安装一个包或从 <http://atom.io/themes> 安装一个主题:
|
||||
|
||||
`apm install {{包名}}`
|
||||
`apm install {{package}}`
|
||||
|
||||
- 移除包 / 主题:
|
||||
- 移除一个包/主题:
|
||||
|
||||
`apm remove {{包名}}`
|
||||
`apm remove {{package}}`
|
||||
|
||||
- 升级包 / 主题:
|
||||
- 升级一个包/主题:
|
||||
|
||||
`apm upgrade {{包名}}`
|
||||
`apm upgrade {{package}}`
|
@@ -1,16 +1,16 @@
|
||||
# apropos
|
||||
|
||||
> 在 manpages 中搜索,例如查找一个新命令。
|
||||
> 更多信息:<https://manned.org/apropos>.
|
||||
> 搜索手册页以获取名称和描述。
|
||||
> 更多信息:<https://manned.org/apropos>。
|
||||
|
||||
- 使用正则表达式搜索关键字:
|
||||
|
||||
`apropos {{正则表达式}}`
|
||||
|
||||
- 搜索时不限制输出到终端宽度:
|
||||
- 不限制输出到终端宽度([l]ong输出):
|
||||
|
||||
`apropos -l {{正则表达式}}`
|
||||
|
||||
- 搜索与给定的所有表达式都匹配的页面:
|
||||
- 搜索匹配所有给定表达式的页面:
|
||||
|
||||
`apropos {{正则表达式_1}} -a {{正则表达式_2}} -a {{正则表达式_3}}`
|
||||
`apropos {{正则表达式_1}} -a {{正则表达式_2}} -a {{正则表达式_3}}`
|
@@ -1,24 +1,25 @@
|
||||
# ar
|
||||
|
||||
> 创建,修改,提取库文件(`.a`, `.so`, `.o`)。
|
||||
> 更多信息:<https://manned.org/ar>.
|
||||
> 创建、修改和提取 Unix 存档。通常用于静态库(`.a`)和 Debian 包(`.deb`)。
|
||||
> 另见:`tar`。
|
||||
> 更多信息:<https://manned.org/ar>。
|
||||
|
||||
- 从库文件中提取全部成员:
|
||||
- E[x]tract 从存档中提取所有成员:
|
||||
|
||||
`ar x {{a 文件}}`
|
||||
`ar x {{path/to/file.a}}`
|
||||
|
||||
- 列出库文件中的成员:
|
||||
- Lis[t] 列出特定存档的内容:
|
||||
|
||||
`ar t {{a 文件}}`
|
||||
`ar t {{path/to/file.ar}}`
|
||||
|
||||
- 替换或添加文件到库文件:
|
||||
- [r]eplace 或添加特定文件到存档:
|
||||
|
||||
`ar r {{要被添加内容的 a 文件}} {{o 文件1 o 文件2 o 文件3 ...}}`
|
||||
`ar r {{path/to/file.deb}} {{path/to/debian-binary path/to/control.tar.gz path/to/data.tar.xz ...}}`
|
||||
|
||||
- 插入对象文件索引(相当于使用`ranlib`):
|
||||
- In[s]ert 对象文件索引(等同于使用 `ranlib`):
|
||||
|
||||
`ar s {{a 文件}}`
|
||||
`ar s {{path/to/file.a}}`
|
||||
|
||||
- 使用文件和附带的目标文件索引创建存档:
|
||||
- 创建一个包含特定文件和附带对象文件索引的存档:
|
||||
|
||||
`ar rs {{a 文件}} {{o 文件1 o 文件2 ...}}`
|
||||
`ar rs {{path/to/file.a}} {{path/to/file1.o path/to/file2.o ...}}`
|
20
pages.zh/common/arc.md
Normal file
20
pages.zh/common/arc.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# arc
|
||||
|
||||
> Arcanist:Phabricator的命令行工具。
|
||||
> 更多信息:<https://secure.phabricator.com/book/phabricator/article/arcanist/>.
|
||||
|
||||
- 将更改发送到Differential进行审核:
|
||||
|
||||
`arc diff`
|
||||
|
||||
- 显示待处理修订信息:
|
||||
|
||||
`arc list`
|
||||
|
||||
- 在审核后更新Git提交信息:
|
||||
|
||||
`arc amend`
|
||||
|
||||
- 推送Git更改:
|
||||
|
||||
`arc land`
|
@@ -1,9 +1,9 @@
|
||||
# arch
|
||||
|
||||
> 展示系统架构的名称。
|
||||
> 另见`uname`.
|
||||
> 更多信息:<https://www.gnu.org/software/coreutils/manual/html_node/arch-invocation.html>.
|
||||
> 显示系统架构的名称。
|
||||
> 另见 `uname`。
|
||||
> 更多信息:<https://www.gnu.org/software/coreutils/manual/html_node/arch-invocation.html>。
|
||||
|
||||
- 展示系统架构:
|
||||
- 显示系统的架构:
|
||||
|
||||
`arch`
|
||||
`arch`
|
20
pages.zh/common/archwiki-rs.md
Normal file
20
pages.zh/common/archwiki-rs.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# archwiki-rs
|
||||
|
||||
> 从 ArchWiki 中读取、搜索和下载页面。
|
||||
> 更多信息:<https://gitlab.com/lucifayr/archwiki-rs>。
|
||||
|
||||
- 从 ArchWiki 中读取一个页面:
|
||||
|
||||
`archwiki-rs read-page {{页面标题}}`
|
||||
|
||||
- 以指定格式从 ArchWiki 中读取一个页面:
|
||||
|
||||
`archwiki-rs read-page {{页面标题}} --format {{纯文本|markdown|html}}`
|
||||
|
||||
- 在 ArchWiki 中搜索包含提供文本的页面:
|
||||
|
||||
`archwiki-rs search "{{搜索文本}}" --text-search`
|
||||
|
||||
- 将所有 ArchWiki 页面下载到指定目录的本地副本:
|
||||
|
||||
`archwiki-rs local-wiki {{/path/to/local_wiki}} --format {{纯文本|markdown|html}}`
|
25
pages.zh/common/arduino-builder.md
Normal file
25
pages.zh/common/arduino-builder.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# arduino-builder
|
||||
|
||||
> 编译 Arduino 草图。
|
||||
> 弃用警告:此工具正在逐步被 `arduino` 取代。
|
||||
> 更多信息:<https://github.com/arduino/arduino-builder>。
|
||||
|
||||
- 编译一个草图:
|
||||
|
||||
`arduino-builder -compile {{path/to/sketch.ino}}`
|
||||
|
||||
- 指定调试级别(默认:5):
|
||||
|
||||
`arduino-builder -debug-level {{1..10}}`
|
||||
|
||||
- 指定自定义构建目录:
|
||||
|
||||
`arduino-builder -build-path {{path/to/build_directory}}`
|
||||
|
||||
- 使用构建选项文件,而不是每次手动指定 `-hardware`、`-tools` 等:
|
||||
|
||||
`arduino-builder -build-options-file {{path/to/build.options.json}}`
|
||||
|
||||
- 启用详细模式:
|
||||
|
||||
`arduino-builder -verbose {{true}}`
|
36
pages.zh/common/arduino.md
Normal file
36
pages.zh/common/arduino.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# Arduino
|
||||
|
||||
> Arduino Studio - Arduino 平台的集成开发环境。
|
||||
> 更多信息:<https://github.com/arduino/Arduino/blob/master/build/shared/manpage.adoc>。
|
||||
|
||||
- 构建一个草图:
|
||||
|
||||
`arduino --verify {{path/to/file.ino}}`
|
||||
|
||||
- 构建并上传一个草图:
|
||||
|
||||
`arduino --upload {{path/to/file.ino}}`
|
||||
|
||||
- 将草图构建并上传到连接在端口 `/dev/ttyACM0` 的 Atmega328p CPU 的 Arduino Nano:
|
||||
|
||||
`arduino --board {{arduino:avr:nano:cpu=atmega328p}} --port {{/dev/ttyACM0}} --upload {{path/to/file.ino}}`
|
||||
|
||||
- 将偏好设置 `name` 设置为给定的 `value`:
|
||||
|
||||
`arduino --pref {{name}}={{value}}`
|
||||
|
||||
- 构建一个草图,将构建结果放在构建目录中,并重用该目录中的任何先前构建结果:
|
||||
|
||||
`arduino --pref build.path={{path/to/build_directory}} --verify {{path/to/file.ino}}`
|
||||
|
||||
- 将任何(更改的)偏好设置保存到 `preferences.txt`:
|
||||
|
||||
`arduino --save-prefs`
|
||||
|
||||
- 安装最新的 SAM 板:
|
||||
|
||||
`arduino --install-boards "{{arduino:sam}}"`
|
||||
|
||||
- 安装 Bridge 和 Servo 库:
|
||||
|
||||
`arduino --install-library "{{Bridge:1.0.0,Servo:1.2.0}}"`
|
36
pages.zh/common/argocd-app.md
Normal file
36
pages.zh/common/argocd-app.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# argocd 应用
|
||||
|
||||
> 命令行接口用于管理 Argo CD 的应用。
|
||||
> 更多信息请访问:<https://argo-cd.readthedocs.io/en/stable/user-guide/commands/argocd_app/>.
|
||||
|
||||
- 列出应用:
|
||||
|
||||
`argocd app list --output {{json|yaml|wide}}`
|
||||
|
||||
- 获取应用详细信息:
|
||||
|
||||
`argocd app get {{app_name}} --output {{json|yaml|wide}}`
|
||||
|
||||
- 在内部部署应用(到 Argo CD 正在运行的同一集群):
|
||||
|
||||
`argocd app create {{app_name}} --repo {{git_repo_url}} --path {{path/to/repo}} --dest-server https://kubernetes.default.svc --dest-namespace {{ns}}`
|
||||
|
||||
- 删除应用:
|
||||
|
||||
`argocd app delete {{app_name}}`
|
||||
|
||||
- 启用应用自动同步:
|
||||
|
||||
`argocd app set {{app_name}} --sync-policy auto --auto-prune --self-heal`
|
||||
|
||||
- 预览应用同步而不影响集群:
|
||||
|
||||
`argocd app sync {{app_name}} --dry-run --prune`
|
||||
|
||||
- 显示应用部署历史:
|
||||
|
||||
`argocd app history {{app_name}} --output {{wide|id}}`
|
||||
|
||||
- 根据历史 ID 将应用回滚到之前的已部署版本(删除意外资源):
|
||||
|
||||
`argocd app rollback {{app_name}} {{history_id}} --prune`
|
13
pages.zh/common/argocd.md
Normal file
13
pages.zh/common/argocd.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# argocd
|
||||
|
||||
> 控制 Argo CD 服务器的命令行界面。
|
||||
> 一些子命令如 `app` 有自己的使用文档。
|
||||
> 更多信息:<https://argo-cd.readthedocs.io/en/stable/user-guide/commands/argocd/>。
|
||||
|
||||
- 登录到 Argo CD 服务器:
|
||||
|
||||
`argocd login --insecure --username {{user}} --password {{password}} {{argocd_server:port}}`
|
||||
|
||||
- 列出应用程序:
|
||||
|
||||
`argocd app list`
|
20
pages.zh/common/argon2.md
Normal file
20
pages.zh/common/argon2.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# argon2
|
||||
|
||||
> 计算 Argon2 加密哈希。
|
||||
> 更多信息:<https://github.com/P-H-C/phc-winner-argon2#command-line-utility>。
|
||||
|
||||
- 使用默认参数计算带有密码和盐的哈希:
|
||||
|
||||
`echo "{{password}}" | argon2 "{{salt_text}}"`
|
||||
|
||||
- 使用指定算法计算哈希:
|
||||
|
||||
`echo "{{password}}" | argon2 "{{salt_text}}" -{{d|i|id}}`
|
||||
|
||||
- 显示输出哈希而不附加信息:
|
||||
|
||||
`echo "{{password}}" | argon2 "{{salt_text}}" -e`
|
||||
|
||||
- 使用给定的迭代 [t] 次,内存使用 [m] 和并行参数 [p] 计算哈希:
|
||||
|
||||
`echo "{{password}}" | argon2 "{{salt_text}}" -t {{5}} -m {{20}} -p {{7}}`
|
32
pages.zh/common/argos-translate.md
Normal file
32
pages.zh/common/argos-translate.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# argos-translate
|
||||
|
||||
> 一个用Python编写的开源离线翻译库和命令行工具。
|
||||
> 更多信息请访问:<https://www.argosopentech.com/>.
|
||||
|
||||
- 安装西班牙语到英语的翻译对:
|
||||
|
||||
`argospm install translate-es_en`
|
||||
|
||||
- 将一些文本从西班牙语(`es`)翻译为英语(`en`)(注意:仅支持两个字母的语言代码):
|
||||
|
||||
`argos-translate --from-lang es --to-lang en {{un texto corto}}`
|
||||
|
||||
- 将文本文件从英语翻译为印地语:
|
||||
|
||||
`cat {{path/to/file.txt}} | argos-translate --from-lang en --to-lang hi`
|
||||
|
||||
- 列出所有已安装的翻译对:
|
||||
|
||||
`argospm list`
|
||||
|
||||
- 显示可安装的英语翻译对:
|
||||
|
||||
`argospm search --from-lang en`
|
||||
|
||||
- 更新已安装的语言包对:
|
||||
|
||||
`argospm update`
|
||||
|
||||
- 从阿拉伯语(`ar`)翻译为俄语(`ru`)(注意:这需要安装翻译对 `translate-ar_en` 和 `translate-en_ru`):
|
||||
|
||||
`argos-translate --from-lang ar --to-lang ru {{صورة تساوي أكثر من ألف كلمة}}`
|
@@ -1,7 +1,7 @@
|
||||
# aria2
|
||||
|
||||
> 这是 `aria2c` 命令的一个别名。
|
||||
> 此命令是 `aria2c` 的别名。
|
||||
|
||||
- 原命令的文档在:
|
||||
- 查看更新命令的文档:
|
||||
|
||||
`tldr aria2c`
|
||||
`tldr aria2c`
|
@@ -2,36 +2,36 @@
|
||||
|
||||
> 快速下载工具。
|
||||
> 支持 HTTP(S)、FTP、SFTP、BitTorrent 和 Metalink。
|
||||
> 更多信息:<https://aria2.github.io>.
|
||||
> 更多信息:<https://aria2.github.io>。
|
||||
|
||||
- 将特定 URI 下载到一个文件:
|
||||
- 下载特定的 URI 到文件:
|
||||
|
||||
`aria2c "{{url}}"`
|
||||
|
||||
- 从一个 URI 下载文件,并指定输出文件名:
|
||||
- 从 URI 下载文件并指定输出名称:
|
||||
|
||||
`aria2c --out {{路径/到/文件}} "{{url}}"`
|
||||
`aria2c --out {{path/to/file}} "{{url}}"`
|
||||
|
||||
- 并行下载多个不同的文件:
|
||||
|
||||
`aria2c --force-sequential {{false}} "{{url1 url2 ...}}"`
|
||||
|
||||
- 从不同的镜像下载相同的文件,并验证已下载文件的校验和:
|
||||
- 从不同的镜像下载相同的文件并验证下载文件的校验和:
|
||||
|
||||
`aria2c --checksum {{sha-256}}={{hash}} "{{url1}}" "{{url2}}" "{{urlN}}"`
|
||||
|
||||
- 下载文件中列出的 URI,并指定并行下载的数量:
|
||||
|
||||
`aria2c --input-file {{路径/到/文件}} --max-concurrent-downloads {{下载数}}`
|
||||
`aria2c --input-file {{path/to/file}} --max-concurrent-downloads {{number_of_downloads}}`
|
||||
|
||||
- 使用多个连接进行下载:
|
||||
- 使用多个连接下载:
|
||||
|
||||
`aria2c --split {{连接数}} "{{url}}"`
|
||||
`aria2c --split {{number_of_connections}} "{{url}}"`
|
||||
|
||||
- 使用用户名和密码进行 FTP 下载:
|
||||
|
||||
`aria2c --ftp-user {{用户名}} --ftp-passwd {{密码}} "{{url}}"`
|
||||
`aria2c --ftp-user {{username}} --ftp-passwd {{password}} "{{url}}"`
|
||||
|
||||
- 限制下载速度为字节/秒(bytes/s):
|
||||
- 限制下载速度(字节/秒):
|
||||
|
||||
`aria2c --max-download-limit {{速度}} "{{url}}"`
|
||||
`aria2c --max-download-limit {{speed}} "{{url}}"`
|
@@ -1,20 +1,20 @@
|
||||
# arp-scan
|
||||
|
||||
> 发送 ARP 数据包到特定主机(指定 IP 地址或主机名),来扫描本地网络。
|
||||
> 更多信息:<https://github.com/royhills/arp-scan>.
|
||||
> 发送 ARP 数据包到主机(指定为 IP 地址或主机名)以扫描本地网络。
|
||||
> 更多信息:<https://github.com/royhills/arp-scan>。
|
||||
|
||||
- 扫描当前本地网络:
|
||||
|
||||
`arp-scan --localnet`
|
||||
|
||||
- 扫描带有自定义位掩码的 IP 网络:
|
||||
- 使用自定义位掩码扫描 IP 网络:
|
||||
|
||||
`arp-scan {{192.168.1.1}}/{{24}}`
|
||||
|
||||
- 扫描自定义范围内的 IP 网络:
|
||||
- 在自定义范围内扫描 IP 网络:
|
||||
|
||||
`arp-scan {{127.0.0.0}}-{{127.0.0.31}}`
|
||||
|
||||
- 扫描带有自定义子网掩码的 IP 网络:
|
||||
- 使用自定义子网掩码扫描 IP 网络:
|
||||
|
||||
`arp-scan {{10.0.0.0}}:{{255.255.255.0}}`
|
||||
`arp-scan {{10.0.0.0}}:{{255.255.255.0}}`
|
@@ -1,16 +1,16 @@
|
||||
# arp
|
||||
|
||||
> 显示和操作系统的 ARP 缓存。
|
||||
> 更多信息:<https://manned.org/arp>.
|
||||
> 更多信息:<https://manned.org/arp>。
|
||||
|
||||
- 显示当前的 ARP 表:
|
||||
|
||||
`arp -a`
|
||||
|
||||
- 删除特定条目:
|
||||
- [d] 删除特定条目:
|
||||
|
||||
`arp -d {{地址}}`
|
||||
|
||||
- 创建指定条目:
|
||||
- [s] 在 ARP 表中设置一个新条目:
|
||||
|
||||
`arp -s {{地址}} {{MAC 地址}}`
|
||||
`arp -s {{地址}} {{mac_address}}`
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user