Mac或Linux中的信息文档文件在哪里,如何安装缺少的信息文件? [英] Where are info document files in Mac or in Linux, and how can I install some missing info files?

查看:200
本文介绍了Mac或Linux中的信息文档文件在哪里,如何安装缺少的信息文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想阅读coreutils信息,但找不到.现在,我想知道信息文档在我的计算机(mac或linux)中的位置.我想知道如何安装信息文件.

I wanted read coreutils info, but I could not find it. Now, I wonder where the info documents in my computer (mac or linux). I want to know how I can install info files.

谢谢

SangChul

推荐答案

我想您在命令行上输入了info coreutils,它返回了信息顶层目录而不是coreutils信息页面?在这种情况下,这就是我的工作(在ubuntu 15.10上,可能在任何GNU/Linux操作系统上).

I suppose you entered info coreutils on the command line, which returned the info top directory instead of the coreutils info page? In that case, here is what I would do (on ubuntu 15.10, and probably on any GNU/Linux OS).

从gnu项目下载coreutils信息文档:

Download the coreutils info document from the gnu project:

wget http://www.gnu.org/software/coreutils/manual/coreutils.info.tar.gz 

解压缩下载的tar压缩文件:

Extract the (compressed) tar archive that you downloaded:

tar xf coreutils.info.tar.gz

重新压缩生成的信息文件:

Re-compress the resulting info file:

gzip coreutils.info

准备具有正确属性的结果文件:

Prepare the resulting file with the right attributes:

chmod 644 coreutils.info.gz
sudo chown root:root coreutils.info.gz

并将其移至信息目录:

sudo mv coreutils.info.gz /usr/share/info

现在,命令

info coreutils

应该工作.

如果要在信息首页上有指向coreutils的超文本链接,请执行以下操作:

If you want to have a hypertext link to coreutils in the info top page then do:

sudo install-info --info-dir=/usr/share/info --info-file=/usr/share/info/coreutils.info.gz

这篇关于Mac或Linux中的信息文档文件在哪里,如何安装缺少的信息文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆