1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 09:15:32 +02:00

common/j*: add Chinese translation (#15654)

This commit is contained in:
Jin 2025-02-09 01:46:26 -05:00 committed by GitHub
parent a529b36c64
commit 7be0fbb538
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 909 additions and 0 deletions

13
pages.zh/common/jadx.md Normal file
View file

@ -0,0 +1,13 @@
# jadx
> Dex 到 Java 的反编译器。
> 将 Android Dex 和 APK 文件生成 Java 源代码。
> 更多信息:<https://github.com/skylot/jadx>.
- 将一个 Dex 文件反编译到一个目录中:
`jadx {{路径/到/文件}}`
- 将一个 Dex 文件反编译到一个特定目录中:
`jadx --output-dir {{路径/到/目录}} {{路径/到/文件}}`

20
pages.zh/common/javap.md Normal file
View file

@ -0,0 +1,20 @@
# javap
> 反汇编类文件并列出它们。
> 更多信息:<https://docs.oracle.com/en/java/javase/20/docs/specs/man/javap.html>.
- 反汇编并列出一个或多个 `.class` 文件:
`javap {{路径/到/file1.class 路径/到/file2.class ...}}`
- 反汇编并列出一个内置类文件:
`javap java.{{包}}.{{类}}`
- 显示帮助信息:
`javap -help`
- 显示版本信息:
`javap -version`

37
pages.zh/common/jbang.md Normal file
View file

@ -0,0 +1,37 @@
# jbang
> 简便地创建、编辑和运行仅包含源代码的自包含 Java 程序。
> 此命令也有关于其子命令的文件,例如:`java`.
> 更多信息:<https://www.jbang.dev/documentation/guide/latest/cli/jbang.html>.
- 初始化一个简单的 Java 类:
`jbang init {{路径/到/文件.java}}`
- 初始化一个 Java 类(用于脚本编写):
`jbang init --template={{cli}} {{路径/到/文件.java}}`
- 使用 `jshell` 在 REPL 编辑器中探索和使用脚本及其任何依赖项:
`jbang run --interactive`
- 设置一个临时项目以在 IDE 中编辑脚本:
`jbang edit --open={{codium|code|eclipse|idea|netbeans|gitpod}} {{路径/到/脚本.java}}`
- 运行 Java 代码片段(Java 9 及以后版本):
`{{echo 'Files.list(Paths.get("/etc")).forEach(System.out::println);'}} | jbang -`
- 运行命令行应用程序:
`jbang {{路径/到/文件.java}} {{命令}} {{参数1 参数2 ...}}`
- 在用户的 `$PATH` 中安装一个脚本:
`jbang app install --name {{命令名称}} {{路径/到/脚本.java}}`
- 安装一个特定版本的 JDK 以与 `jbang` 一起使用:
`jbang jdk install {{版本}}`

20
pages.zh/common/jc.md Normal file
View file

@ -0,0 +1,20 @@
# jc
> 将多个命令的输出转换为 JSON。
> 更多信息:<https://github.com/kellyjonbrazil/jc>.
- 通过管道将命令输出转换为 JSON:
`{{ifconfig}} | jc {{--ifconfig}}`
- 通过魔术语法将命令输出转换为 JSON:
`jc {{ifconfig}}`
- 通过管道输出格式化的 JSON:
`{{ifconfig}} | jc {{--ifconfig}} -p`
- 通过魔术语法输出格式化的 JSON:
`jc -p {{ifconfig}}`

20
pages.zh/common/jcal.md Normal file
View file

@ -0,0 +1,20 @@
# jcal
> 以贾拉里历格式显示日历信息,并突出显示当前日期。
> 更多信息:<https://www.nongnu.org/jcal/>.
- 显示当前月份的日历:
`jcal`
- 显示上个月、当前月份和下个月的日历:
`jcal -3`
- 显示特定年份(4 位数字) 的日历:
`jcal {{年份}}`
- 显示特定年份和月份的日历:
`jcal {{年份}} {{月份}}`

24
pages.zh/common/jdeps.md Normal file
View file

@ -0,0 +1,24 @@
# jdeps
> Java 类依赖分析器。
> 更多信息:<https://docs.oracle.com/en/java/javase/20/docs/specs/man/jdeps.html>.
- 分析 `.jar``.class` 文件的依赖关系:
`jdeps {{路径/到/文件名.class}}`
- 打印特定 `.jar` 文件的所有依赖关系摘要:
`jdeps {{路径/到/文件名.jar}} -summary`
- 打印 `.jar` 文件的所有类级依赖关系:
`jdeps {{路径/到/文件名.jar}} -verbose`
- 将分析结果输出为 DOT 文件到指定目录:
`jdeps {{路径/到/文件名.jar}} -dotoutput {{路径/到/目录}}`
- 显示帮助信息:
`jdeps --help`

28
pages.zh/common/jdupes.md Normal file
View file

@ -0,0 +1,28 @@
# jdupes
> 一个强大的重复文件查找器,并且是 fdupes 的一个增强分支。
> 更多信息:<https://codeberg.org/jbruchon/jdupes>.
- 搜索单个目录:
`jdupes {{路径/到/目录}}`
- 搜索多个目录:
`jdupes {{目录1}} {{目录2}}`
- 递归地搜索所有目录:
`jdupes --recurse {{路径/到/目录}}`
- 递归地搜索目录,并让用户选择要保留的文件:
`jdupes --delete --recurse {{路径/到/目录}}`
- 搜索多个目录并跟随目录2下的子目录,而不是目录1:
`jdupes {{目录1}} --recurse: {{目录2}}`
- 搜索多个目录并在结果中保持目录顺序:
`jdupes -O {{目录1}} {{目录2}} {{目录3}}`

24
pages.zh/common/jekyll.md Normal file
View file

@ -0,0 +1,24 @@
# jekyll
> 一个简单的、支持博客的静态网站生成器。
> 更多信息:<https://jekyllrb.com/docs/usage/>.
- 生成一个将在 http://localhost:4000/ 上运行的开发服务器:
`jekyll serve`
- 启用增量再生成:
`jekyll serve --incremental`
- 启用详细输出:
`jekyll serve --verbose`
- 将当前目录生成到 `./_site` 中:
`jekyll build`
- 清理网站(移除网站输出和 `cache` 目录)而不进行构建:
`jekyll clean`

32
pages.zh/common/jello.md Normal file
View file

@ -0,0 +1,32 @@
# jello
> 一个使用 Python 语法的命令行 JSON 处理器。
> 更多信息:<https://github.com/kellyjonbrazil/jello>.
- 将 `stdin` 中的 JSON 或 JSON-Lines 数据进行美化打印到 `stdout`
`cat {{文件.json}} | jello`
- 输出 `stdin` 中的 JSON 或 JSON Lines 数据的模式到 `stdout`(对 grep 有用):
`cat {{文件.json}} | jello -s`
- 输出 `stdin` 中数组的所有元素(或对象的所有值)为 JSON 或 JSON-Lines 数据到 `stdout`
`cat {{文件.json}} | jello -l`
- 输出 `stdin` 中的 JSON 或 JSON-Lines 数据的第一个元素到 `stdout`
`cat {{文件.json}} | jello _[0]`
- 输出 `stdin` 中 JSON 或 JSON-Lines 数据中每个元素的给定键的值到 `stdout`
`cat {{文件.json}} | jello '[i.{{键名}} for i in _]'`
- 输出多个键的值作为新的 JSON 对象(假设输入 JSON 拥有键 `key_name1``key_name2`):
`cat {{文件.json}} | jello '{"{{键1}}": _.{{键名1}}, "{{键名}}": _.{{键名2}}}'`
- 输出给定键的值为字符串(并禁用 JSON 输出):
`cat {{文件.json}} | jello -r '"{{一些文本}}: " + _.{{键名}}'`

36
pages.zh/common/jest.md Normal file
View file

@ -0,0 +1,36 @@
# jest
> 一个零配置的 JavaScript 测试平台。
> 更多信息:<https://jestjs.io>.
- 运行所有可用的测试:
`jest`
- 从指定文件中运行测试套件:
`jest {{路径/到/文件1 路径/到/文件2 ...}}`
- 从当前目录和子目录中路径匹配给定正则表达式的文件运行测试套件:
`jest {{正则表达式1}} {{正则表达式2}}`
- 运行名称匹配给定正则表达式的测试:
`jest --testNamePattern {{正则表达式}}`
- 运行与给定源文件相关的测试套件:
`jest --findRelatedTests {{路径/到/源文件.js}}`
- 运行与所有未提交文件相关的测试套件:
`jest --onlyChanged`
- 监视文件更改并自动重新运行相关测试:
`jest --watch`
- 显示帮助信息:
`jest --help`

View file

@ -0,0 +1,12 @@
# jetifier
> 一个以 npm 格式提供的 Jetifier AndroidX 迁移工具,适用于 react-native。
> 更多信息:<https://github.com/mikehardy/jetifier>.
- 将项目依赖迁移到 AndroidX 格式:
`jetifier`
- 将项目依赖从 AndroidX 格式迁移回来:
`jetifier reverse`

16
pages.zh/common/jf.md Normal file
View file

@ -0,0 +1,16 @@
# jf
> 与 JFrog 产品进行交互,比如 Artifactory、Xray、Distribution、Pipelines 和 Mission Control。
> 更多信息:<https://jfrog.com/help/r/jfrog-cli/usage>.
- 添加一个新配置:
`jf config add`
- 显示当前配置:
`jf config show`
- 在给定的仓库和目录中搜索制品:
`jf rt search --recursive {{仓库名称}}/{{路径}}/`

7
pages.zh/common/jfrog.md Normal file
View file

@ -0,0 +1,7 @@
# jfrog
> 这是 `jf` 命令的一个别名。
- 查看原始命令的文档:
`tldr jf`

View file

@ -0,0 +1,36 @@
# jhipster
> 使用单体或微服务架构的 Web 应用程序生成器。
> 更多信息:<https://www.jhipster.tech/>.
- 生成一个简单的全栈项目(单体或微服务):
`jhipster`
- 生成一个简单的前端项目:
`jhipster --skip-server`
- 生成一个简单的后端项目:
`jhipster --skip-client`
- 将最新的 JHipster 更新应用到项目中:
`jhipster upgrade`
- 向已生成的项目添加一个新实体:
`jhipster entity {{实体名称}}`
- 导入一个 JDL 文件来配置您的应用程序(请参阅:<https://start.jhipster.tech/jdl-studio/>):
`jhipster import-jdl {{文件1.jh 文件2.jh ... n文件.jh}}`
- 为您的应用程序生成一个 CI/CD 管道:
`jhipster ci-cd`
- 为您的应用程序生成 Kubernetes 配置:
`jhipster kubernetes`

20
pages.zh/common/jhsdb.md Normal file
View file

@ -0,0 +1,20 @@
# jhsdb
> 附加到一个 Java 进程或启动一个事后调试器来分析崩溃的 Java 虚拟机的核心转储。
> 更多信息:<https://manned.org/jhsdb>.
- 打印 Java 进程的堆栈和锁信息:
`jhsdb jstack --pid {{进程id}}`
- 在交互式调试模式下打开一个核心转储:
`jhsdb clhsdb --core {{路径/到/core_dump}} --exe {{路径/到/jdk/bin/java}}`
- 启动远程调试服务器:
`jhsdb debugd --pid {{进程id}} --serverid {{可选的唯一标识}}`
- 在交互式调试模式下连接到一个进程:
`jhsdb clhsdb --pid {{进程id}}`

28
pages.zh/common/jigsaw.md Normal file
View file

@ -0,0 +1,28 @@
# jigsaw
> 基于 Laravel 的 PHP 静态网站生成器。
> 更多信息:<https://jigsaw.tighten.co>.
- 初始化一个项目:
`jigsaw init`
- 使用一个初始模板初始化项目:
`jigsaw init {{模板_名称}}`
- 为开发环境构建网站:
`jigsaw build`
- 从 "build_local" 目录预览网站:
`jigsaw serve`
- 为生产环境构建网站:
`jigsaw build production`
- 从 "build_production" 目录预览网站:
`jigsaw serve {{build_production}}`

20
pages.zh/common/jmeter.md Normal file
View file

@ -0,0 +1,20 @@
# jmeter
> 开源的 Java 应用程序,旨在对功能行为进行负载测试并衡量性能。
> 更多信息:<https://jmeter.apache.org>.
- 在非 GUI 模式下运行指定的测试计划:
`jmeter --nongui --testfile {{路径/到/文件.jmx}}`
- 在非 GUI 模式下使用指定的日志文件运行测试计划:
`jmeter --nogui --testfile {{路径/到/文件.jmx}} --logfile {{路径/到/日志文件.jtl}}`
- 在非 GUI 模式下使用指定代理运行测试计划:
`jmeter --nongui --testfile {{路径/到/文件.jmx}} --proxyHost {{127.0.0.1}} --proxyPort {{8888}}`
- 在非 GUI 模式下使用指定的 JMeter 属性运行测试计划:
`jmeter --jmeterproperty {{键}}='{{值}}' --nongui --testfile {{路径/到/文件.jmx}}`

24
pages.zh/common/jmtpfs.md Normal file
View file

@ -0,0 +1,24 @@
# jmtpfs
> 基于 FUSE 的文件系统,用于访问 MTP 设备。
> 更多信息:<https://manned.org/jmtpfs>.
- 将一个 MTP 设备挂载到一个目录:
`jmtpfs {{路径/到/目录}}`
- 设置挂载选项:
`jmtpfs -o {{allow_other,auto_unmount}} {{路径/到/目录}}`
- 列出可用的 MTP 设备:
`jmtpfs --listDevices`
- 如果存在多个设备,挂载一个特定的设备:
`jmtpfs -device={{总线_id}},{{设备_id}} {{路径/到/目录}}`
- 卸载 MTP 设备:
`fusermount -u {{路径/到/目录}}`

20
pages.zh/common/jobs.md Normal file
View file

@ -0,0 +1,20 @@
# jobs
> 显示当前会话中作业的状态。
> 更多信息:<https://manned.org/jobs>.
- 显示所有作业的状态:
`jobs`
- 显示特定作业的状态:
`jobs %{{作业_id}}`
- 显示所有作业的状态和进程 ID:
`jobs -l`
- 显示所有作业的进程 ID:
`jobs -p`

20
pages.zh/common/joe.md Normal file
View file

@ -0,0 +1,20 @@
# joe
> Joe 自己的文本编辑器。
> 更多信息:<https://joe-editor.sourceforge.io>.
- 在 JOE 中打开一个新文件:
`joe`
- 打开一个指定文件:
`joe {{路径/到/文件}}`
- 打开一个指定文件,并将光标定位在指定的行:
`joe +{{行号}} {{路径/到/文件}}`
- 以只读模式打开一个指定文件:
`joe -rdonly {{路径/到/文件}}`

36
pages.zh/common/john.md Normal file
View file

@ -0,0 +1,36 @@
# john
> 密码破解工具。
> 更多信息:<https://www.openwall.com/john/>.
- 破解密码哈希:
`john {{路径/到/hashes.txt}}`
- 显示已破解的密码:
`john --show {{路径/到/hashes.txt}}`
- 按用户标识符从多个文件中显示用户的已破解密码:
`john --show --users={{用户_IDs}} {{路径/到/hashes1.txt 路径/到/hashes2.txt ...}}`
- 使用自定义的单词列表破解密码哈希:
`john --wordlist={{路径/到/wordlist.txt}} {{路径/到/hashes.txt}}`
- 列出可用的哈希格式:
`john --list=formats`
- 使用特定的哈希格式破解密码哈希:
`john --format={{md5crypt}} {{路径/到/hashes.txt}}`
- 启用单词变形规则破解密码哈希:
`john --rules {{路径/到/hashes.txt}}`
- 从状态文件恢复一个中断的破解会话,例如:`mycrack.rec`
`john --restore={{路径/到/mycrack.rec}}`

24
pages.zh/common/join.md Normal file
View file

@ -0,0 +1,24 @@
# join
> 在两个已排序的文件中根据一个公共字段合并行。
> 更多信息:<https://www.gnu.org/software/coreutils/manual/html_node/join-invocation.html>.
- 根据第一个(默认)字段合并两个文件:
`join {{路径/到/文件1}} {{路径/到/文件2}}`
- 使用逗号(而不是空格)作为字段分隔符合并两个文件:
`join -t {{','}} {{路径/到/文件1}} {{路径/到/文件2}}`
- 将文件1的字段3与文件2的字段1合并:
`join -1 {{3}} -2 {{1}} {{路径/到/文件1}} {{路径/到/文件2}}`
- 为文件1中的每行未配对的行生成一行:
`join -a {{1}} {{路径/到/文件1}} {{路径/到/文件2}}`
- 从 `stdin` 合并一个文件:
`cat {{路径/到/文件1}} | join - {{路径/到/文件2}}`

32
pages.zh/common/josm.md Normal file
View file

@ -0,0 +1,32 @@
# josm
> 可扩展的 OpenStreetMap 编辑器,适用于 Java 8+。
> 更多信息:<https://josm.openstreetmap.de/>.
- 启动 JOSM:
`josm`
- 在最大化模式下启动 JOSM:
`josm --maximize`
- 启动 JOSM 并设置特定的语言:
`josm --language {{de}}`
- 启动 JOSM 并将所有首选项重置为默认值:
`josm --reset-preferences`
- 启动 JOSM 并下载指定的边界框:
`josm --download {{minlat,minlon,maxlat,maxlon}}`
- 启动 JOSM 并以原始 GPS 格式下载指定的边界框:
`josm --downloadgps {{minlat,minlon,maxlat,maxlon}}`
- 启动 JOSM 并且不加载插件:
`josm --skip-plugins`

28
pages.zh/common/jp2a.md Normal file
View file

@ -0,0 +1,28 @@
# jp2a
> 将 JPEG 图像转换为 ASCII。
> 更多信息:<https://csl.name/jp2a/>.
- 从文件中读取 JPEG 图像并以 ASCII 显示:
`jp2a {{路径/到/image.jpeg}}`
- 从 URL 中读取 JPEG 图像并以 ASCII 显示:
`jp2a {{www.example.com/image.jpeg}}`
- 对 ASCII 输出进行着色:
`jp2a --colors {{路径/到/image.jpeg}}`
- 指定用于 ASCII 输出的字符:
`jp2a --chars='{{..-ooxx@@}}' {{路径/到/image.jpeg}}`
- 将 ASCII 输出写入一个文件:
`jp2a --output={{路径/到/output_file.txt}} {{路径/到/image.jpeg}}`
- 以 HTML 文件格式写入 ASCII 输出,适合在网页浏览器中查看:
`jp2a --html --output={{路径/到/output_file.html}} {{路径/到/image.jpeg}}`

View file

@ -0,0 +1,20 @@
# jpegoptim
> 优化 JPEG 图像。
> 更多信息:<https://github.com/tjko/jpegoptim>.
- 优化一组 JPEG 图像,保留所有相关数据:
`jpegoptim {{图像1.jpeg}} {{图像2.jpeg}} {{图像N.jpeg}}`
- 优化 JPEG 图像,剥离所有非必要数据:
`jpegoptim --strip-all {{图像1.jpeg}} {{图像2.jpeg}} {{图像N.jpeg}}`
- 强制输出图像为渐进式:
`jpegoptim --all-progressive {{图像1.jpeg}} {{图像2.jpeg}} {{图像N.jpeg}}`
- 强制输出图像具有固定的最大文件大小:
`jpegoptim --size={{250k}} {{图像1.jpeg}} {{图像2.jpeg}} {{图像N.jpeg}}`

View file

@ -0,0 +1,12 @@
# jpegtopnm
> 将 JPEG/JFIF 文件转换为 PPM 或 PGM 格式。
> 更多信息:<https://netpbm.sourceforge.net/doc/jpegtopnm.html>.
- 将 JPEG/JFIF 图像转换为 PPM 或 PGM 图像:
`jpegtopnm {{路径/到/文件.jpg}} > {{路径/到/文件.pnm}}`
- 显示版本信息:
`jpegtopnm -version`

36
pages.zh/common/jq.md Normal file
View file

@ -0,0 +1,36 @@
# jq
> 一个使用特定领域语言(DSL)的 JSON 处理器。
> 更多信息:<https://jqlang.github.io/jq/manual/>.
- 使用 `jq` 二进制执行特定的表达式(打印出彩色和格式化的 JSON 输出):
`jq '.' {{路径/到/文件.json}}`
- 执行特定的脚本:
`{{cat 路径/到/文件.json}} | jq --from-file {{路径/到/脚本.jq}}`
- 传递特定的参数:
`{{cat 路径/到/文件.json}} | jq {{--arg "name1" "value1" --arg "name2" "value2" ...}} '{{. + $ARGS.named}}'`
- 通过来自多个文件的旧 JSON 对象创建新的 JSON 对象:
`{{cat 路径/到/多个_json_文件_*.json}} | jq '{{{newKey1: .key1, newKey2: .key2.nestedKey, ...}}}'`
- 打印特定的数组项:
`{{cat 路径/到/文件.json}} | jq '{{.[索引1], .[索引2], ...}}'`
- 打印所有数组/对象中的值:
`{{cat 路径/到/文件.json}} | jq '.[]'`
- 打印具有双条件过滤的数组对象:
`{{cat 路径/到/文件.json}} | jq '.[] | select((.key1=="value1") and .key2=="value2")'`
- 添加/移除特定的键:
`{{cat 路径/到/文件.json}} | jq '. {{+|-}} {{{"key1": "value1", "key2": "value2", ...}}}'`

24
pages.zh/common/jrnl.md Normal file
View file

@ -0,0 +1,24 @@
# jrnl
> 一个简单的命令行日记应用程序。
> 更多信息:<https://jrnl.sh>.
- 使用编辑器插入一个新条目:
`jrnl`
- 快速插入一个新条目:
`jrnl {{today at 3am}}: {{标题}}. {{内容}}`
- 查看最近的十条条目:
`jrnl -n {{10}}`
- 查看从去年开始到今年三月初所有发生的事情:
`jrnl -from "{{last year}}" -until {{march}}`
- 编辑所有用 "texas" 和 "history" 标签标记的条目:
`jrnl {{@texas}} -and {{@history}} --edit`

28
pages.zh/common/json5.md Normal file
View file

@ -0,0 +1,28 @@
# json5
> 将 JSON5 文件转换为 JSON。
> 更多信息:<https://json5.org>.
- 将 JSON5 `标准输入` 转换为 JSON 并输出到 `标准输出`
`echo {{输入}} | json5`
- 将 JSON5 文件转换为 JSON 并输出到 `标准输出`
`json5 {{路径/到/输入文件.json5}}`
- 将 JSON5 文件转换为指定的 JSON 文件:
`json5 {{路径/到/输入文件.json5}} --out-file {{路径/到/输出文件.json}}`
- 验证一个 JSON5 文件:
`json5 {{路径/到/输入文件.json5}} --validate`
- 指定缩进的空格数(或使用 "t" 表示制表符):
`json5 --space {{缩进量}}`
- 显示帮助:
`json5 --help`

16
pages.zh/common/jstack.md Normal file
View file

@ -0,0 +1,16 @@
# jstack
> Java 栈跟踪工具。
> 更多信息:<https://manned.org/jstack>.
- 打印 Java 进程中所有线程的 Java 栈跟踪:
`jstack {{java_进程号}}`
- 打印混合模式(Java/C++)的栈跟踪:
`jstack -m {{java_进程号}}`
- 打印来自 Java 核心转储的栈跟踪:
`jstack {{/usr/bin/java}} {{文件.core}}`

20
pages.zh/common/jtbl.md Normal file
View file

@ -0,0 +1,20 @@
# jtbl
> 用于在终端中将 JSON 和 JSON Lines 数据打印为表格的工具。
> 更多信息:<https://github.com/kellyjonbrazil/jtbl>.
- 从 JSON 或 JSON Lines 输入中打印表格:
`cat {{文件.json}} | jtbl`
- 打印表格并指定用于换行的列宽:
`cat {{文件.json}} | jtbl --cols={{宽度}}`
- 打印表格并截断行而不是换行:
`cat {{文件.json}} | jtbl -t`
- 打印表格并不换行或截断行:
`cat {{文件.json}} | jtbl -n`

32
pages.zh/common/julia.md Normal file
View file

@ -0,0 +1,32 @@
# julia
> 一种用于技术计算的高层次、高性能动态编程语言。
> 更多信息:<https://docs.julialang.org/en/v1/manual/getting-started/>.
- 启动一个 REPL(交互式 shell):
`julia`
- 执行一个 Julia 程序并退出:
`julia {{program.jl}}`
- 执行一个带有参数的 Julia 程序:
`julia {{program.jl}} {{参数}}`
- 执行包含 Julia 代码的字符串:
`julia -e '{{julia_代码}}'`
- 执行一段 Julia 代码,并向其传递参数:
`julia -e '{{for x in ARGS; println(x); end}}' {{参数}}`
- 计算一个表达式并打印结果:
`julia -E '{{(1 - cos(pi/4))/2}}'`
- 以多线程模式启动 Julia,使用 N 个线程:
`julia -t {{N}}`

View file

@ -0,0 +1,20 @@
# jupyter lab
> Jupyter 笔记本的交互式开发环境。
> 更多信息:<https://jupyterlab.readthedocs.io/en/stable/>.
- 启动 JupyterLab:
`jupyter lab`
- 打开一个特定的笔记本:
`jupyter lab {{路径/到/笔记本.ipynb}}`
- 在特定目录中启动 JupyterLab:
`jupyter lab --notebook-dir {{路径/到/目录}}`
- 在调试模式下启动 JupyterLab:
`jupyter lab --debug`

View file

@ -0,0 +1,33 @@
# jupyter
> 用于创建和共享包含代码、可视化和笔记的文档的 Web 应用程序。
> 主要用于数据分析、科学计算和机器学习。
> 更多信息:<https://jupyter.org>.
- 在当前目录下启动一个 Jupyter notebook 服务器:
`jupyter notebook`
- 打开一个特定的 Jupyter notebook:
`jupyter notebook {{示例.ipynb}}`
- 将特定 Jupyter notebook 导出为其他格式:
`jupyter nbconvert --to {{html|markdown|pdf|script}} {{示例.ipynb}}`
- 在指定端口启动服务器:
`jupyter notebook --port={{端口}}`
- 列出当前正在运行的 notebook 服务器:
`jupyter notebook list`
- 停止当前正在运行的服务器:
`jupyter notebook stop`
- 启动 JupyterLab(如果已安装)于当前目录:
`jupyter lab`

View file

@ -0,0 +1,7 @@
# jupyterlab
> 这是 `jupyter lab` 命令的一个别名。
- 查看原命令的文档:
`tldr jupyter lab`

View file

@ -0,0 +1,28 @@
# jupytext
> 将 Jupyter 笔记本转换为纯文本文件,然后再转换回去。
> 更多信息:<https://jupytext.readthedocs.io>.
- 将笔记本转换为成对的 `.ipynb`/`.py` 笔记本:
`jupytext --set-formats ipynb,py {{notebook.ipynb}}`
- 将笔记本转换为 `.py` 文件:
`jupytext --to py {{notebook.ipynb}}`
- 将 `.py` 文件转换为没有输出的笔记本:
`jupytext --to notebook {{notebook.py}}`
- 将 `.md` 文件转换为笔记本并运行它:
`jupytext --to notebook --execute {{notebook.md}}`
- 更新笔记本中的输入单元格并保留输出和元数据:
`jupytext --update --to notebook {{notebook.py}}`
- 更新笔记本的所有配对表示:
`jupytext --sync {{notebook.ipynb}}`

24
pages.zh/common/just.1.md Normal file
View file

@ -0,0 +1,24 @@
# just
> 保存并运行项目特定的命令。
> 更多信息:<https://github.com/casey/just>.
- 运行在 justfile 中指定的配方:
`just {{配方}}`
- 在项目根目录初始化新的 justfile:
`just --init`
- 在默认编辑器中编辑 justfile:
`just -e`
- 列出 justfile 中可用的配方:
`just -l`
- 打印 justfile:
`just --dump`

11
pages.zh/common/just.md Normal file
View file

@ -0,0 +1,11 @@
# just
> `just` 可以指代多个具有相同名称的命令。
- 查看命令运行器的文档:
`tldr just.1`
- 查看 V8 JavaScript 运行时的文档:
`tldr just.js`

21
pages.zh/common/jwt.md Normal file
View file

@ -0,0 +1,21 @@
# jwt
> 使用 JSON Web Tokens (JWTs) 进行操作。
> 可用的加密算法包括 HS256、HS384、HS512、RS256、RS384、RS512、ES256、ES384。
> 更多信息:<https://github.com/mike-engel/jwt-cli>.
- 解码一个 JWT:
`jwt decode {{jwt字符串}}`
- 将 JWT 解码为 JSON 字符串:
`jwt decode -j {{jwt字符串}}`
- 将 JSON 字符串编码为 JWT:
`jwt encode --alg {{HS256}} --secret {{1234567890}} '{{json字符串}}'`
- 将键值对载荷编码为 JWT:
`jwt encode --alg {{HS256}} --secret {{1234567890}} -P {{键=值}}`