common/q*: add zh translation (#20184)

This commit is contained in:
Jin
2025-12-23 01:25:45 -05:00
committed by GitHub
parent 9671d9c337
commit 87735338eb
5 changed files with 133 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# qemu-system-i386
> 模拟 `i386` 架构。
> 更多信息:<https://www.qemu.org/docs/master/system/target-i386.html>。
- 从一个模拟 `i386` 架构的镜像启动:
`qemu-system-i386 -hda {{image_name.img}} -m {{4096}}`
- 从一个实时 ISO 镜像启动 QEMU 实例:
`qemu-system-i386 -hda {{image_name.img}} -m {{4096}} -cdrom {{os_image.iso}} -boot d`
- 从物理设备启动(例如从 USB 启动以测试可引导介质):
`qemu-system-i386 -hda {{/dev/storage_device}} -m {{4096}}`
- 不启动 VNC 服务器:
`qemu-system-i386 -hda {{image_name.img}} -m {{4096}} -nographic`
- 退出无图形界面的 QEMU
`<Ctrl a><x>`
- 列出支持的机器类型:
`qemu-system-i386 {{[-M|-machine]}} help`
+16
View File
@@ -0,0 +1,16 @@
# qemu-system-riscv64
> 模拟 `riscv64` 架构。
> 更多信息:<https://www.qemu.org/docs/master/system/target-riscv.html>。
- 启动一个模拟 `riscv64` 架构的内核:
`qemu-system-riscv64 {{[-M|-machine]}} virt -bios none -kernel {{kernel.elf}} -nographic`
- 列出支持的机器类型:
`qemu-system-riscv64 {{[-M|-machine]}} help`
- 退出无图形界面的 QEMU
`<Ctrl a><x>`
+28
View File
@@ -0,0 +1,28 @@
# qemu-system-x86_64
> 模拟 `x86_64` 架构。
> 更多信息:<https://www.qemu.org/docs/master/system/target-i386.html>。
- 从一个模拟 `x86_64` 架构的镜像启动:
`qemu-system-x86_64 -hda {{镜像名称.img}} -m {{4096}}`
- 从一个 Live ISO 镜像启动 QEMU 实例:
`qemu-system-x86_64 -hda {{镜像名称.img}} -m {{4096}} -cdrom {{操作系统镜像.iso}} -boot d`
- 从物理设备启动(例如:从 USB 启动以测试一个可启动介质):
`qemu-system-x86_64 -hda {{/dev/存储设备}} -m {{4096}}`
- 不启动 VNC 服务器:
`qemu-system-x86_64 -hda {{镜像名称.img}} -m {{4096}} -nographic`
- 退出非图形界面的 QEMU
`<Ctrl a><x>`
- 列出支持的机器类型:
`qemu-system-x86_64 {{[-M|-machine]}} help`
+28
View File
@@ -0,0 +1,28 @@
# qmake
> 从 Qt 项目文件生成 Makefile。
> 更多信息:<https://doc.qt.io/qt-6/qmake-running.html>。
- 从当前目录中的项目文件生成一个 `Makefile`
`qmake`
- 指定 `Makefile` 和项目文件的位置:
`qmake -o {{路径/到/Makefile}} {{路径/到/项目文件.pro}}`
- 生成一个默认的项目文件:
`qmake -project`
- 编译一个项目:
`qmake && make`
- 启用调试模式:
`qmake -d`
- 显示帮助信息:
`qmake -help`
+33
View File
@@ -0,0 +1,33 @@
# qwen
> 使用 Qwen3-Coder 启动一个交互式提示。
> 请参阅:`gemini`.
> 更多信息:<https://github.com/QwenLM/qwen-code>。
- 启动一个 REPL 会话以进行交互式对话:
`qwen`
- 将另一个命令的输出发送给 Qwen 并立即退出:
`{{echo "总结罗马的历史"}} | qwen {{[-p|--prompt]}}`
- 覆盖默认模型(默认值:qwen3-coder-max):
`qwen {{[-m|--model]}} {{model_name}}`
- 在沙盒容器中运行:
`qwen {{[-s|--sandbox]}}`
- 执行一个提示,然后保持在交互模式中:
`qwen {{[-i|--prompt-interactive]}} "{{给我一个 Python 中递归的示例}}"`
- 在上下文中包含所有文件:
`qwen {{[-a|--all-files]}}`
- 在状态栏中显示内存使用情况:
`qwen --show-memory-usage`