linux – 将whatis钩子添加到bash脚本中
发布时间:2020-12-13 23:05:10 所属栏目:Linux 来源:网络整理
导读:我刚刚发现了whatis并希望在我的bash脚本中添加信息. 将信息添加到bash脚本中的最佳方法是什么? whatis 捡起? 解决方法 whatis从whatis数据库获取所有信息,这是使用命令makewhatis生成的. 有两种方法可以将条目添加到数据库中. 创建并安装程序或脚本的手册
我刚刚发现了whatis并希望在我的bash脚本中添加信息.
将信息添加到bash脚本中的最佳方法是什么? whatis 捡起? 解决方法
whatis从whatis数据库获取所有信息,这是使用命令makewhatis生成的.
有两种方法可以将条目添加到数据库中. >创建并安装程序或脚本的手册页,然后运行makewhatis. makewhatis从命令手册页的NAME部分获取第一行. whatis数据库在我的机器上的位置是/usr/share / man / whatis,这是它??的样子. ABORT(7) - abort the current transaction ALTER_AGGREGATE(7) - change the definition of an aggregate function ALTER_COLLATION(7) - change the definition of a collation ALTER_CONVERSION(7) - change the definition of a conversion ... ping(8) - send ICMP ECHO_REQUEST packets to network hosts ... 这是man ping的输出 NAME ping -- send ICMP ECHO_REQUEST packets to network hosts SYNOPSIS ping [-AaCDdfnoQqRrv] [-b boundif] [-c count] [-G sweepmaxsize] (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |