macOS 安装linux手册
电脑信息 | 系统版本 |
---|---|
MacBook Air (M1, 2020)(M1) | Monterey 12.01 |
man是啥
UNIX系统重要的手册工具,mac是基于UNIX系统开发的,自然也会有预装的manual手册。但当你使用man 2 xx查看系统调用时,它告诉你查无此人。下面分析一下原因:
1、使用命令:man -aw ls试探一下ls这个命令在哪些手册中出现。
uianster@uiansterdeMacBook-Air ~ %% man -aw ls
/usr/share/man/man1/ls.1
2、进入man的路径看下
uianster@uiansterdeMacBook-Air man %% ls
man1 man4 man5 man6 man7 man8 man9 mann
发现缺少man2、man3,具体是什么含义,查看了下官方说明:
https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man5/manpages.5.html
MANUAL PAGE SECTIONS
The manual is divided into sections. Each section covers a particular
subject area. The major manual page sections are:
1 General User Commands
2 System Calls
3 Library Routines (*)
4 Special Files and Sockets
5 File formats and Conventions
6 Games and Fun Stuff
7 Miscellaneous Documentation
8 System Administration
9 Kernel and Programming Style
n Tcl/Tk
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
现在瞬间秒懂了,苹果压根没想过你是个程序员(手动滑稽),看来只能自己安装了。搜索一下发现各种方案,但有一篇文章和我的想法不谋而合。怎么处理就看这篇文章好了。
推荐阅读