无法在 MacOS 上查看自定义 man 文件

时间:2021-06-09 07:46:16

标签: macos macos-big-sur manpage

我在 man 路径中添加了一个 man 文件,但是当我尝试读取 man 命令时;我收到“没有手动输入命令”。

人的 O/P --path

/opt/local/share/man:/usr/local/share/man:/usr/share/man:/Library/Apple/usr/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man

人/usr/local/share/man/man1/speedtest.5.gz的O/P

    SPEEDTEST()                                                        SPEEDTEST()

Name
       speedtest  - Speedtest CLI by Ookla is the official command line client
       for testing the speed and performance of your internet connection.

Version
       1.0.0

Synopsis
           speedtest [-aAbBfhiIpPsv] [--ca-certificate=path] [--format=[=format-
type]] [--help] [--interface=interface]
           [--ip=ip_address] [--output-header] [--precision=num_decimal_places] 
[--progress=yes|no]
           [--selection-details] [--server-id=id] [--servers] [--unit=[=unit-of-
measure]] [--version]

Description
       speedtest is an application that measures the latency,  jitter,  packet
       loss,  download  bandwidth, and upload bandwidth of the network connec-
       tion between the client and a nearby Speedtest Server.
.......

人速测试的O/P

No manual entry for speedtest

请帮忙。

更新:该问题是由于在第 1 部分目录中使用了第 5 部分后缀。将 man 文件重命名为 speedtest.1.gz 并且它可以工作。感谢@Mark Setchell 的帮助。

1 个答案:

答案 0 :(得分:1)

将第 5 节后缀重命名为第 1 节,因为 man 文件位于第 1 节目录中。