とすると以下のような emacs ライクな画面になり、マシン内にインストールされている全 info ファイルの一覧が表示される。
File: dir, Node: Top This is the top of the INFO tree
This (the Directory node) gives a menu of major topics.
Typing "q" exits, "?" lists all Info commands, "d" returns here,
"h" gives a primer for first-timers,
"mEmacs" visits the Emacs manual, etc.
In Emacs, you can click mouse button 2 on a menu item or cross reference to select it.
* Menu:
Programming & development tools.
* As: (as). The GNU assembler.
* Binutils: (binutils). The GNU binary utilities.
* Bzip2: (bzip2). A program and library for data compression.
* CVS: (cvs). Concurrent Versions System
* Gas: (as). The GNU assembler.
(略)
-----Info: (dir)Top, 198 lines --Top----------------------------------------------
info ファイルが存在せず、man が存在する場合は、man の出力をそのまま info 上で表示する。
% info mount
⇒ mount.info が存在しないため、mount(8) の結果を表示する。
●Texinfo と info について
info のドキュメントは Texinfo というドキュメント形式で記述されている。Texinfo 形式のファイル (拡張子は .texi) を 1つだけ作成すれば、印刷用マニュアルとオンラインマニュアルに変換できる。この Texinfo ファイルは、makeinfo というコマンドで info ファイルに変換することができる (拡張子は .info)。この info ファイルを閲覧するプログラムが info コマンドである。info ファイルは info2html というツールで HTML 化することができる。
●余談
どうでもいいが、当ページ管理人が一番嫌いな UNIX コマンドが info である。有益な情報が info 内にあるのに、見づらいし、操作しづらいから。info2html の吐く HTML も嫌い。世の人々は info に満足しているのだろうか?