「分かりそう」で「分からない」でも「分かった」気になれるLinuxコマンド辞典イメージぴよ画像「分かりそう」で「分からない」でも「分かった」気になれるLinuxコマンド辞典

makewhatis

スポンサーリンク

何するコマンド?

whatisデータベースを作成・更新するときに使うコマンド



書き方

makewhatis [オプション] [manpath]



オプション

オプション説明
-uwhatisデータベースを新しいページの内容で更新する?
Update database with new pages (file’s status was last changed 24 hours ago)
-v詳細メッセージを表示する
Verbose output
-wmanpathとして「man --path」の値を使う
Use manpath obtained from ‘man --path‘
-s【sections】manpathのsections、またはcatpathのsectionsを見るらしいけど、よく分かりません
Looks in the sections of manpath or catpath. If the option is absent, its value is assumed to be ..1 2 3 4 5 6 7 8 9 n l..
-c【catpath】うんちゃらかんちゃら
The preformatted manual pages located in catpath are scanned. If the argument is not provided,it is assumed to be the first existing directory between /usr/man/preformat and /usr/man.

補足事項

UNIX系のコンピュータの中には(作っていれば)「whatisデータベース」と呼ばれるデータベースがあります。
whatisデータベースの中にはマニュアルの目次やキーワードなどが収められています。
言わば、マニュアル用の索引です。

このwhatisデータベースを作成・更新するときに使うコマンドが「makewhatis」です。

基本的な使い方は

makewhatis

です。

オプションの使い方は必要に応じて勉強してください。

ちなみに、CentOS7には「makewhatis」コマンドが付いてないようです。
代わりに「mandb」コマンドを使います。

スポンサーリンク


書籍画像