AI 参与说明(Agent:Codex):本页由 Codex 协助整理 Linux 文档导航与内部链接;内容范围以本仓库当前条目为准。
本栏目聚焦 Linux、POSIX 与类 Unix 环境中的命令行、系统管理和网络,以及相关的开发工具、自动化、数据和 DevOps 工程实践。
主题导航#
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 文件地址。