AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题 / 415788
Accepted
dr_
dr_
Asked: 2018-01-10 02:43:53 +0800 CST2018-01-10 02:43:53 +0800 CST 2018-01-10 02:43:53 +0800 CST

如何显示猫(不是男人)页面?

  • 772

我最近发现,除了 man ? 页面之外,一些 UNIX 文档也可以作为 cat ? 页面使用。(参照这个问题:mandb和流浪猫有什么关系?)

来自man catman:

NAME
       catman - create or update the pre-formatted manual pages

SYNOPSIS
       catman [-d?V] [-M path] [-C file] [section] ...

DESCRIPTION
       catman  is used to create an up to date set of pre-formatted manual pages known as cat pages.  Cat pages are generally much faster to display than the
       original manual pages, but require extra storage space.  The decision to support cat pages is that of the local administrator, who must provide  suit‐
       able directories to contain them.

       The  options  available  to  catman are the manual page hierarchies and sections to pre-format.  The default hierarchies are those specified as system
       hierarchies in the man-db configuration file, and the default sections are either the colon-delimited contents of the environment variable $MANSECT or
       the  standard set compiled into man if $MANSECT is undefined.  Supplying catman with a set of whitespace-delimited section names will override both of
       the above.

我的问题是:可用于显示猫页面的命令是什么?

cat man
  • 1 1 个回答
  • 743 Views

1 个回答

  • Voted
  1. Best Answer
    Stephen Kitt
    2018-01-10T02:48:44+08:002018-01-10T02:48:44+08:00

    是的,有一个命令可用于显示猫页面:man!

    从手册页:

    找到手册页后,将执行检查以确定是否存在相对的预格式化“cat”文件并且是否比 nroff 文件新。如果确实如此,那么这个预格式化的文件(通常)会被解压缩,然后通过使用寻呼机显示出来。寻呼机可以通过多种方式指定,否则将退回到使用默认值(详见选项-P)。如果未找到 cat 或比 nroff 文件更旧,则 nroff 将通过各种程序过滤并立即显示。

    如果可以产生cat文件(存在一个相对的cat目录并且有相应的权限),man会在后台压缩并存储cat文件。

    要查看原始cat文件,请使用诸如less或之类的工具more——cat文件只是预渲染的手册页。(流浪猫需要这个。)

    • 4

相关问题

  • 更新了 GNU/Linux 系统中 ifconfig 的手册页。

  • 手册页窗口中的可用命令在哪里记录,这些命令是否依赖于系统?

  • cat heredocument 复制了除函数调用之外的所有内容

  • 将手册页导出到 postscript

  • 这个命令是如何工作的?mkfifo /tmp/f; 猫/tmp/f | /bin/sh -i 2>&1 | 数控 -l 1234 > /tmp/f

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    ssh 无法协商:“找不到匹配的密码”,正在拒绝 cbc

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    如何卸载内核模块“nvidia-drm”?

    • 13 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Wong Jia Hau ssh-add 返回:“连接代理时出错:没有这样的文件或目录” 2018-08-24 23:28:13 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST
  • Martin Hope
    Bagas Sanjaya 为什么 Linux 使用 LF 作为换行符? 2017-12-20 05:48:21 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve