我正尝试在Mac OS X 10.9.5上安装bash脚本的手册页。我试图遵循的程序总结如下:man page tutorial。我还总结了我尝试以下步骤:如何在mac os上安装自定义man(手动)页面x
cp custom_command.1 /usr/local/man/man1/custom_command.1
gzip /usr/local/man/man1/custom_command.1
当试图man custom_command
我得到的输出No manual entry for custom_command
。我也尝试了man page tutorial中提到的其他安装方法,但没有成功。
有趣的是,上述步骤适用于emacs控制台,即当我输入man custom_command时,我确实得到了正确的手册。但是,该命令未被自动完成识别,我在阅读手册之前收到以下警告:WARNING: terminal is not fully functional
。
任何有关如何解决上述问题(即与系统终端和emacs控制台)的建议,将不胜感激。
备注1
对于一个参考,这名男子的脚本,我试图安装从tutorial拍摄并在下文中重申了参考:
.\" Manpage for nuseradd.
.\" Contact [email protected] to correct errors or typos.
.TH man 8 "06 May 2010" "1.0" "nuseradd man page"
.SH NAME
nuseradd \- create a new LDAP user
.SH SYNOPSIS
nuseradd [USERNAME]
.SH DESCRIPTION
nuseradd is high level shell program for adding users to LDAP server. On Debian, administrators should usually use nuseradd.debian(8) instead.
.SH OPTIONS
The nuseradd does not take any options. However, you can supply username.
.SH SEE ALSO
useradd(8), passwd(5), nuseradd.debian(8)
.SH BUGS
No known bugs.
.SH AUTHOR
Vivek Gite ([email protected])
备注2
我在Linux论坛上看到的其中一个建议是在安装新命令man
后运行命令mandb
。但是,该命令在我的操作系统上不可用。