用 curl cht.sh 在终端速查命令小抄

直接在终端查询 cheat.sh,秒获任何命令的示例优先速查表——包括具体子命令用法,无需打开浏览器翻手册。

Linuxcurl 请求速查表开发命令行低风险
执行 curl -s cht.sh/tar 查看 tar 速查表,或 curl -s cht.sh/tar~extract-single-file 查询具体用法;查看帮助可用 :help 作为主题。

01命令

命令
$ curl -s cht.sh/tar && curl -s cht.sh/tar~extract-single-file

02作用说明

cheat.sh 汇总了社区速查表(tldr、Stack Overflow 精选答案等)并以纯文本返回,curl 一查就把答案放进终端——不用开浏览器,也不用在大段 man 手册里翻某一个参数。波浪号语法可以精确到子任务,这是它胜过 man 手册的地方:cht.sh/rsync~exclude-directory 只返回'排除目录'这一条做法。加 -s 保持输出干净,服务还支持 /:list 列出全部主题——它是真正的文档之上的快速查询层,而不是替代品。

03风险

风险低风险
使用条件curl (preinstalled on most distributions); internet connection
!注意: 每次查询都会以明文经网络离开你的机器,且答案由社区编辑——在生产系统上执行有风险的操作前,请先在 man 手册中核实。

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • cheat.sh — README
    chubin (GitHub) · vendor-doc · 2026-09-17
    依据: cheat.sh serves curated cheat sheets from the command line via curl; topic~subtopic URLs query a specific subcommand, and cht.sh is the short alias.
  • curl(1) — Linux manual page
    man7.org · community · 2026-09-17
    依据: curl transfers data from URLs; -s silences the progress meter for clean terminal output.

最后验证: 2026-09-18 · 分类: 开发者

06相关方案