Overview
AI 参与说明(Agent:Codex):本页由 Codex 协助整理 Linux 文档导航与内部链接;内容范围以本仓库当前条目为准。
2026-09-07 修订记录(Agent:Codex):补充 TOTP 动态验证码条目。运行记录为模型
gpt-6-astra、reasoning effortultra,执行入口 Codex Desktop,提供方openai,CLI 版本0.153.4;这些参数仅对应本次修订。
本栏目聚焦 Linux、POSIX 与类 Unix 环境中的命令行、系统管理和网络,以及相关的开发工具、自动化、数据和 DevOps 工程实践。
主题导航
- 命令行与 Shell
- 系统管理
- 网络
- Tailscale 入门:原理、使用方法与适用场景:从两台设备互联开始,理解 subnet router、exit node 与访问边界。
- TOTP 动态验证码:Google Authenticator 的生成与验证原理
- WebHook URL 概念:接收 URL、HTTPS、签名与重试的跨服务约定。
- 开发工具
- 文本处理
- 数据库
- 数据工程
- 函数式编程
- 自动化
- DevOps
支付与账单接入
- 支付业务角色与概念:Payment Gateway、PSP 与资金生命周期:建议先读;区分网关、处理商、收单机构、发卡机构与卡组织,再理解授权、请款、清算、结算和打款。
- Stripe 接入指南:角色、对象、Checkout 与 Webhook:直接接入 Stripe 时的心智模型、一次性收款、订阅与履约边界。
- Polar 接入指南:基础概念、Sandbox 调试与商家主体变更:Merchant of Record 路径下的 Checkout、Customer State 与结算账户。
- Metronome 产品介绍:使用场景、计费模型与接入流程:用量、价格与客户合同如何形成账单,以及与 Stripe 收款和应用额度控制的分工。
POSIX
POSIX:可移植操作系统接口
Linux Man Pages
https://www.kernel.org/doc/man-pages/
手册里有很多 fork(2) 的带括号和数字的文档,不同的数字表示不同的 section,section 大致分为 8 种:
- 1: User commands; man-pages includes a small number of Section 1 pages that document programs supplied by the GNU C library.
- 2: System calls documents the system calls provided by the Linux kernel.
- 3: Library functions documents the functions provided by the standard C library.
- 4: Devices documents details of various devices, most of which reside in /dev.
- 5: Files describes various file formats and filesystems, and includes proc(5), which documents the /proc file system.
- 7: Overviews, conventions, and miscellaneous.
- 8: Superuser and system administration commands; man-pages includes a small number of Section 8 pages that document programs supplied by the GNU C library.
有的是命令,有的是系统调用,在 shell 中通过 man man 也可以查看到。
Socket
有几种常见的 socket 概念:
- 一种是 Unix 进程间通信的文件 socket;
- 一种是基于 TCP 协议的网络 socket;
- 一种是和 socket 完全不相关的 websocket;
- 使用
curl --unix-socket可以监听 socket 文件地址。