为什么 `apropos url` 输出 'url (7)' 但我不能使用命令 url

为什么 `apropos url` 输出 'url (7)' 但我不能使用命令 url

我想要一个 URL 编码器。所以我apropos在终端中编辑了它,并收到以下内容

$ apropos url   
uri (7)              - uniform resource identifier (URI), including a URL or URN
URI::URL (3pm)       - Uniform Resource Locators
url (7)              - uniform resource identifier (URI), including a URL or URN
urn (7)              - uniform resource identifier (URI), including a URL or URN

但是当我输入时,url它输出:

$ url                                                                                
No command 'url' found, did you mean:
 Command 'rl' from package 'randomize-lines' (universe)
 Command 'ul' from package 'bsdmainutils' (main)
 Command 'erl' from package 'erlang-base' (main)
 Command 'erl' from package 'erlang-base-hipe' (universe)
 Command 'uil' from package 'libmotif-dev' (multiverse)
 Command 'uil' from package 'lesstif-bin' (universe)
 Command 'curl' from package 'curl' (main)
url: command not found

答案1

apropos url返回类似内容url(1)时,您可以将其用作url命令行。在此之前,url(7)将参考宏包或约定(杂项)。

数字对应于该页面来自手册的哪一节;1 表示用户命令,而 8 表示系统管理员内容。man 本身的手册页 (man man) 对此进行了解释并列出了标准内容:

MANUAL SECTIONS
The standard sections of the manual include:

1      User Commands
2      System Calls
3      C Library Functions
4      Devices and Special Files
5      File Formats and Conventions
6      Games et. Al.
7      Miscellanea
8      System Administration tools and Deamons

Distributions customize the manual section to their specifics,
which often include additional sections.

来源:https://unix.stackexchange.com/questions/3586/what-do-the-numbers-in-a-man-page-mean

相关内容