mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
*: sync Chinese pages (#22320)
Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
This commit is contained in:
@@ -10,28 +10,28 @@
|
||||
|
||||
- 下载([d]ownload)剧集:
|
||||
|
||||
`ani-cli -d "{{动漫名称}}"`
|
||||
`ani-cli {{[-d|--download]}} "{{动漫名称}}"`
|
||||
|
||||
- 下载([d]ownload)一个范围([r]ange)的剧集:
|
||||
|
||||
`ani-cli -d -r "{{1 6}}" "{{动漫名称}}"`
|
||||
`ani-cli {{[-d|--download]}} {{[-r|--range]}} "{{1 6}}" "{{动漫名称}}"`
|
||||
|
||||
- 下载([d]ownload)整部动漫(所有剧集的范围):
|
||||
|
||||
`ani-cli -d -r "1 -1" "{{动漫名称}}"`
|
||||
`ani-cli {{[-d|--download]}} {{[-r|--range]}} "1 -1" "{{动漫名称}}"`
|
||||
|
||||
- 使用 [v]LC 播放器播放:
|
||||
|
||||
`ani-cli -v "{{动漫名称}}"`
|
||||
`ani-cli {{[-v|--vlc]}} "{{动漫名称}}"`
|
||||
|
||||
- 观看特定([e]pisode)剧集:
|
||||
|
||||
`ani-cli -e {{剧集序号}} "{{动漫名称}}"`
|
||||
`ani-cli {{[-e|--episode]}} {{剧集序号}} "{{动漫名称}}"`
|
||||
|
||||
- 从历史记录中([c]ontinue)继续观看动漫:
|
||||
|
||||
`ani-cli -c`
|
||||
`ani-cli {{[-c|--continue]}}`
|
||||
|
||||
- 更新([U]pdate)`ani-cli`:
|
||||
|
||||
`ani-cli -U`
|
||||
`ani-cli {{[-U|--update]}}`
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- 使用图片生成块图文件:
|
||||
|
||||
`bmaptool create -o {{blockmap 格式文件.bmap}} {{图片文件}}`
|
||||
`bmaptool create {{[-o|--output]}} {{blockmap 格式文件.bmap}} {{图片文件}}`
|
||||
|
||||
- 复制图片到指定目录:
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
|
||||
- 使用密码将一个目录加密为`archive.gpg`:
|
||||
|
||||
`gpg-zip --symmetric --output {{archive.gpg}} {{path/to/directory}}`
|
||||
`gpg-zip {{[-c|--symmetric]}} {{[-o|--output]}} {{archive.gpg}} {{path/to/directory}}`
|
||||
|
||||
- 将`archive.gpg`解密到同名目录中:
|
||||
|
||||
`gpg-zip --decrypt {{path/to/archive.gpg}}`
|
||||
`gpg-zip {{[-d|--decrypt]}} {{path/to/archive.gpg}}`
|
||||
|
||||
- 列出加密的`archive.gpg`的内容:
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
- 在 localhost 上监听 8080 端口:
|
||||
|
||||
`gunicorn --bind {{localhost}}:{{8080}} {{导入路径:应用程序}}`
|
||||
`gunicorn {{[-b|--bind]}} {{localhost}}:{{8080}} {{导入路径:应用程序}}`
|
||||
|
||||
- 启用实时自动加载:
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
- 使用 4 个工作进程处理请求:
|
||||
|
||||
`gunicorn --workers {{4}} {{导入路径:应用程序}}`
|
||||
`gunicorn {{[-w|--workers]}} {{4}} {{导入路径:应用程序}}`
|
||||
|
||||
- 使用 4 个工作线程处理请求:
|
||||
|
||||
|
||||
@@ -10,4 +10,4 @@
|
||||
|
||||
- 将一个 Dex 文件反编译到一个特定目录中:
|
||||
|
||||
`jadx --output-dir {{路径/到/目录}} {{路径/到/文件}}`
|
||||
`jadx {{[-d|--output-dir]}} {{路径/到/目录}} {{路径/到/文件}}`
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# jc
|
||||
|
||||
> 将多个命令的输出转换为 JSON。
|
||||
> 更多信息:<https://github.com/kellyjonbrazil/jc>。
|
||||
> 更多信息:<https://github.com/kellyjonbrazil/jc#usage>。
|
||||
|
||||
- 通过管道将命令输出转换为 JSON:
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
|
||||
- 通过管道输出格式化的 JSON:
|
||||
|
||||
`{{ifconfig}} | jc {{--ifconfig}} -p`
|
||||
`{{ifconfig}} | jc {{--ifconfig}} {{[-p|--pretty]}}`
|
||||
|
||||
- 通过魔术语法输出格式化的 JSON:
|
||||
|
||||
`jc -p {{ifconfig}}`
|
||||
`jc {{[-p|--pretty]}} {{ifconfig}}`
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
- 分析堆转储文件,为 HTTP 服务指定备用端口:
|
||||
|
||||
`jhat -p {{端口}} {{路径/堆转储文件}}`
|
||||
`jhat {{[-p|-port]}} {{端口}} {{路径/堆转储文件}}`
|
||||
|
||||
- 通过 jhat 分析转储文件,指定使用 8GB RAM(建议使用 2-4 倍的转储大小):
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
- 列出可用的 MTP 设备:
|
||||
|
||||
`jmtpfs --listDevices`
|
||||
`jmtpfs {{[-l|--listDevices]}}`
|
||||
|
||||
- 如果存在多个设备,挂载一个特定的设备:
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
- 执行特定的脚本:
|
||||
|
||||
`{{cat 路径/到/文件.json}} | jq --from-file {{路径/到/脚本.jq}}`
|
||||
`{{cat 路径/到/文件.json}} | jq {{[-f|--from-file]}} {{路径/到/脚本.jq}}`
|
||||
|
||||
- 传递特定的参数:
|
||||
|
||||
|
||||
@@ -13,16 +13,16 @@
|
||||
|
||||
- 将 JSON5 文件转换为指定的 JSON 文件:
|
||||
|
||||
`json5 {{路径/到/输入文件.json5}} --out-file {{路径/到/输出文件.json}}`
|
||||
`json5 {{路径/到/输入文件.json5}} {{[-o|--out-file]}} {{路径/到/输出文件.json}}`
|
||||
|
||||
- 验证一个 JSON5 文件:
|
||||
|
||||
`json5 {{路径/到/输入文件.json5}} --validate`
|
||||
`json5 {{路径/到/输入文件.json5}} {{[-v|--validate]}}`
|
||||
|
||||
- 指定缩进的空格数(或使用 "t" 表示制表符):
|
||||
|
||||
`json5 --space {{缩进量}}`
|
||||
`json5 {{[-s|--space]}} {{缩进量}}`
|
||||
|
||||
- 显示帮助:
|
||||
|
||||
`json5 --help`
|
||||
`json5 {{[-h|--help]}}`
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
|
||||
- 打印表格并截断行而不是换行:
|
||||
|
||||
`cat {{文件.json}} | jtbl -t`
|
||||
`cat {{文件.json}} | jtbl {{[-t|--truncate]}}`
|
||||
|
||||
- 打印表格并不换行或截断行:
|
||||
|
||||
`cat {{文件.json}} | jtbl -n`
|
||||
`cat {{文件.json}} | jtbl {{[-n|--no-wrap]}}`
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
|
||||
- 在默认编辑器中编辑 justfile:
|
||||
|
||||
`just -e`
|
||||
`just {{[-e|--edit]}}`
|
||||
|
||||
- 列出 justfile 中可用的配方:
|
||||
|
||||
`just -l`
|
||||
`just {{[-l|--list]}}`
|
||||
|
||||
- 打印 justfile:
|
||||
|
||||
|
||||
@@ -13,4 +13,4 @@
|
||||
|
||||
- 复制文件,但在编辑器中交换源文件名和目标文件名的位置:
|
||||
|
||||
`qcp --option swap {{*.jpg}}`
|
||||
`qcp {{[-o|--option]}} swap {{*.jpg}}`
|
||||
|
||||
@@ -6,16 +6,16 @@
|
||||
|
||||
- 将字符串转换为二维码并保存到输出文件:
|
||||
|
||||
`qrencode -o {{路径/到/输出文件.png}} {{字符串}}`
|
||||
`qrencode {{[-o|--output]}} {{路径/到/输出文件.png}} {{字符串}}`
|
||||
|
||||
- 将输入文件转换为二维码并保存到输出文件:
|
||||
|
||||
`qrencode -o {{路径/到/输出文件.png}} -r {{路径/到/输入文件}}`
|
||||
`qrencode {{[-o|--output]}} {{路径/到/输出文件.png}} {{[-r|--read-from]}} {{路径/到/输入文件}}`
|
||||
|
||||
- 将字符串转换为二维码并在终端中打印:
|
||||
|
||||
`qrencode -t ansiutf8 {{字符串}}`
|
||||
`qrencode {{[-t|--type]}} ansiutf8 {{字符串}}`
|
||||
|
||||
- 从管道输入转换为二维码并在终端中打印:
|
||||
|
||||
`echo {{字符串}} | qrencode -t utf8`
|
||||
`echo {{字符串}} | qrencode {{[-t|--type]}} utf8`
|
||||
|
||||
@@ -9,16 +9,16 @@
|
||||
|
||||
- 提取一个归档文件到指定目录:
|
||||
|
||||
`unar -o {{路径/到/目录}} {{归档文件}}`
|
||||
`unar {{[-o|-output-directory]}} {{路径/到/目录}} {{归档文件}}`
|
||||
|
||||
- 如果要提取的文件已经存在,则总是覆盖:
|
||||
|
||||
`unar -f {{归档文件}}`
|
||||
`unar {{[-f|-force-overwrite]}} {{归档文件}}`
|
||||
|
||||
- 如果要提取的文件已经存在,则总是重命名:
|
||||
|
||||
`unar -r {{归档文件}}`
|
||||
`unar {{[-r|-force-rename]}} {{归档文件}}`
|
||||
|
||||
- 如果要提取的文件已经存在,则总是跳过:
|
||||
|
||||
`unar -s {{归档文件}}`
|
||||
`unar {{[-s|-force-skip]}} {{归档文件}}`
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
- 打印网络上指定媒体的媒体信息:
|
||||
|
||||
`you-get --info {{https://example.com/video?id=value}}`
|
||||
`you-get {{[-i|--info]}} {{https://example.com/video?id=value}}`
|
||||
|
||||
- 从指定 URL 下载媒体:
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
|
||||
- 将媒体下载到指定位置:
|
||||
|
||||
`you-get --output-dir {{路径/到/目录}} --output-filename {{文件名}} {{https://example.com/watch?v=value}}`
|
||||
`you-get {{[-o|--output-dir]}} {{路径/到/目录}} {{[-O|--output-filename]}} {{文件名}} {{https://example.com/watch?v=value}}`
|
||||
|
||||
- 使用代理下载媒体:
|
||||
|
||||
`you-get --http-proxy {{代理服务器}} {{https://example.com/watch?v=value}}`
|
||||
`you-get {{[-x|--http-proxy]}} {{代理服务器}} {{https://example.com/watch?v=value}}`
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
- 以漂亮打印格式输出 YAML 文件(v3):
|
||||
|
||||
`yq read {{路径/到/file.yaml}} --colors`
|
||||
`yq read {{路径/到/file.yaml}} {{[-C|--colors]}}`
|
||||
|
||||
- 输出仅包含数组的 YAML 文件中的第一个元素(v4+):
|
||||
|
||||
@@ -21,11 +21,11 @@
|
||||
|
||||
- 在文件中设置(或覆盖)键的值(v4+):
|
||||
|
||||
`yq eval '.{{键}} = "{{值}}"' --inplace {{路径/到/file.yaml}}`
|
||||
`yq eval '.{{键}} = "{{值}}"' {{[-i|--inplace]}} {{路径/到/file.yaml}}`
|
||||
|
||||
- 在文件中设置(或覆盖)键的值(v3):
|
||||
|
||||
`yq write --inplace {{路径/到/file.yaml}} '{{键}}' '{{值}}'`
|
||||
`yq write {{[-i|--inplace]}} {{路径/到/file.yaml}} '{{键}}' '{{值}}'`
|
||||
|
||||
- 合并两个文件并打印到 `stdout`(v4+):
|
||||
|
||||
@@ -33,4 +33,4 @@
|
||||
|
||||
- 合并两个文件并打印到 `stdout`(v3):
|
||||
|
||||
`yq merge {{路径/到/file1.yaml}} {{路径/到/file2.yaml}} --colors`
|
||||
`yq merge {{路径/到/file1.yaml}} {{路径/到/file2.yaml}} {{[-C|--colors]}}`
|
||||
|
||||
@@ -11,28 +11,28 @@
|
||||
|
||||
- 列出可下载的视频格式:
|
||||
|
||||
`yt-dlp --list-formats "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"`
|
||||
`yt-dlp {{[-F|--list-formats]}} "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"`
|
||||
|
||||
- 使用最佳 MP4 视频格式下载视频或播放列表(默认为 "bv\*+ba/b"):
|
||||
|
||||
`yt-dlp --format "{{bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"`
|
||||
`yt-dlp {{[-f|--format]}} "{{bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]}}" "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"`
|
||||
|
||||
- 从视频中提取音频(需要 ffmpeg 或 ffprobe):
|
||||
|
||||
`yt-dlp --extract-audio "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"`
|
||||
`yt-dlp {{[-x|--extract-audio]}} "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"`
|
||||
|
||||
- 指定提取音频的格式和音质(0(最佳)到 10(最差),默认值为 5):
|
||||
|
||||
`yt-dlp --extract-audio --audio-format {{mp3}} --audio-quality {{0}} "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"`
|
||||
`yt-dlp {{[-x|--extract-audio]}} --audio-format {{mp3}} --audio-quality {{0}} "{{https://www.youtube.com/watch?v=oHg5SJYRHA0}}"`
|
||||
|
||||
- 仅下载播放列表中的第二、第四、第五、第六和最后一项(第一项为 1,而非 0):
|
||||
|
||||
`yt-dlp --playlist-items 2,4:6,-1 "{{https://youtube.com/playlist?list=PLbzoR-pLrL6pTJfLQ3UwtB-3V4fimdqnA}}"`
|
||||
`yt-dlp {{[-I|--playlist-items]}} 2,4:6,-1 "{{https://youtube.com/playlist?list=PLbzoR-pLrL6pTJfLQ3UwtB-3V4fimdqnA}}"`
|
||||
|
||||
- 下载 YouTube 频道/用户的所有播放列表,并将每个播放列表保存在单独的目录中:
|
||||
|
||||
`yt-dlp -o "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/user/TheLinuxFoundation/playlists}}"`
|
||||
`yt-dlp {{[-o|--output]}} "{{%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s}}" "{{https://www.youtube.com/user/TheLinuxFoundation/playlists}}"`
|
||||
|
||||
- 下载 Udemy 课程,并将每章保存在单独的目录中:
|
||||
|
||||
`yt-dlp -u {{用户}} -p {{密码}} -P "{{路径/到/目录}}" -o "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{https://www.udemy.com/java-tutorial}}"`
|
||||
`yt-dlp {{[-u|--username]}} {{用户}} {{[-p|--password]}} {{密码}} {{[-P|--paths]}} "{{路径/到/目录}}" {{[-o|--output]}} "{{%(playlist)s/%(chapter_number)s - %(chapter)s/%(title)s.%(ext)s}}" "{{https://www.udemy.com/java-tutorial}}"`
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
|
||||
- 显示特定 ZFS 存储池的详细配置:
|
||||
|
||||
`zdb -C {{存储池名称}}`
|
||||
`zdb {{[-C|--config]}} {{存储池名称}}`
|
||||
|
||||
- 显示关于块的数量、大小和重复数据删除的统计信息:
|
||||
|
||||
`zdb -b {{存储池名称}}`
|
||||
`zdb {{[-b|--block-stats]}} {{存储池名称}}`
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
- 从 `stdin` 中给定的 XML 生成一个 Go 结构体,并将输出发送到文件:
|
||||
|
||||
`curl -s {{https://url/to/xml}} | zek -o {{路径/到/输出.go}}`
|
||||
`curl {{[-s|--silent]}} {{https://url/to/xml}} | zek -o {{路径/到/输出.go}}`
|
||||
|
||||
- 从 `stdin` 中给定的 XML 生成一个示例 Go 程序,并将输出发送到文件:
|
||||
|
||||
|
||||
@@ -9,11 +9,11 @@
|
||||
|
||||
- 打印匹配的文件名和行号:
|
||||
|
||||
`zipgrep -H -n "{{搜索模式}}" {{路径/到/文件.zip}}`
|
||||
`zipgrep {{[-H|--with-filename]}} {{[-n|--line-number]}} "{{搜索模式}}" {{路径/到/文件.zip}}`
|
||||
|
||||
- 搜索与模式不匹配的行:
|
||||
|
||||
`zipgrep -v "{{搜索模式}}" {{路径/到/文件.zip}}`
|
||||
`zipgrep {{[-v|--invert-match]}} "{{搜索模式}}" {{路径/到/文件.zip}}`
|
||||
|
||||
- 指定在 Zip 压缩档案中要搜索的文件:
|
||||
|
||||
@@ -21,4 +21,4 @@
|
||||
|
||||
- 排除在 Zip 压缩档案中要搜索的文件:
|
||||
|
||||
`zipgrep "{{搜索模式}}" {{路径/到/文件.zip}} -x {{要排除的文件1}} {{要排除的文件2}}`
|
||||
`zipgrep "{{搜索模式}}" {{路径/到/文件.zip}} {{[-x|--line-regexp]}} {{要排除的文件1}} {{要排除的文件2}}`
|
||||
|
||||
@@ -33,4 +33,4 @@
|
||||
|
||||
- 显示帮助:
|
||||
|
||||
`balooctl --help`
|
||||
`balooctl {{[-h|--help]}}`
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
|
||||
- 安全地丢弃设备上的所有块,删除所有数据:
|
||||
|
||||
`blkdiscard --secure {{/dev/设备名}}`
|
||||
`blkdiscard {{[-s|--secure]}} {{/dev/设备名}}`
|
||||
|
||||
- 丢弃设备的前 100 MB:
|
||||
|
||||
`blkdiscard --length {{100MB}} {{/dev/设备名}}`
|
||||
`blkdiscard {{[-l|--length]}} {{100MB}} {{/dev/设备名}}`
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
- 打开一个新的 VPN 会话:
|
||||
|
||||
`openvpn3 session-start --config {{路径/到/config.conf}}`
|
||||
`openvpn3 session-start {{[-c|--config]}} {{路径/到/config.conf}}`
|
||||
|
||||
- 列出已建立的会话:
|
||||
|
||||
@@ -13,11 +13,11 @@
|
||||
|
||||
- 断开当前建立的以给定配置开始的会话:
|
||||
|
||||
`openvpn3 session-manage --config {{路径/到/config.conf}} --disconnect`
|
||||
`openvpn3 session-manage {{[-c|--config]}} {{路径/到/config.conf}} {{[-D|--disconnect]}}`
|
||||
|
||||
- 导入 VPN 配置:
|
||||
|
||||
`openvpn3 config-import --config {{路径/到/config.conf}}`
|
||||
`openvpn3 config-import {{[-c|--config]}} {{路径/到/config.conf}}`
|
||||
|
||||
- 列出导入的配置:
|
||||
|
||||
|
||||
@@ -21,15 +21,15 @@
|
||||
|
||||
- 根据定制的筛选条件选择测试:
|
||||
|
||||
`tmt try --test {{feature}}`
|
||||
`tmt try {{[-t|--test]}} {{feature}}`
|
||||
|
||||
- 配置客户机并等待用户输入指令:
|
||||
|
||||
`tmt try --ask`
|
||||
`tmt try {{[-a|--ask]}}`
|
||||
|
||||
- 直接登录到客户机:
|
||||
|
||||
`tmt try --login`
|
||||
`tmt try {{[-l|--login]}}`
|
||||
|
||||
- 显示帮助:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user