コマンドの簡単な説明の表示(部分一致)(aproposコマンド)
aproposコマンドはキーワード(コマンド名など)とコマンドなどに関する簡単な説明が含まれたwhatisデータベースから、
指定したキーワードを検索し、部分一致したそのコマンドなどの簡単な説明を表示する。

構文
apropos  キーワード

キーワード「pass」と部分一致するものを表示する。
#apropos pass
chage                (1)  - change user password expiry information
chpasswd             (8)  - update password file in batch
crypt                (3)  - password and data encryption
endpwent [getpwent]  (3)  - get password file entry
fgetpwent            (3)  - get password file entry
getpass              (3)  - get a password
getpw                (3)  - Re-construct password line entry
getpwent             (3)  - get password file entry
getpwnam             (3)  - get password file entry
getpwuid [getpwnam]  (3)  - get password file entry
gpasswd              (1)  - administer the /etc/group file
grpconv [pwconv]     (8)  - convert to and from shadow passwords and groups
grpunconv [pwconv]   (8)  - convert to and from shadow passwords and groups
grub-md5-crypt       (8)  - Encrypt a password in MD5 format
hesiod_free_passwd [hesiod_getpwnam] (3)  - Hesiod functions for retrieving passwd information
hesiod_getpwnam      (3)  - Hesiod functions for retrieving passwd information
hesiod_getpwuid [hesiod_getpwnam] (3)  - Hesiod functions for retrieving passwd information
pam_localuser        (8)  - require users to be listed in /etc/passwd
passwd               (1)  - update a user's authentication tokens(s)
passwd               (5)  - password file
passwd2des [xcrypt]  (3)  - RFS password encryption
putpwent             (3)  - write a password file entry
pwck                 (8)  - verify integrity of password files
pwconv               (8)  - convert to and from shadow passwords and groups
pwunconv [pwconv]    (8)  - convert to and from shadow passwords and groups
sasl_checkpass       (3)  - Check a plaintext password
sasl_getsecret_t     (3)  - The SASL callback for secrets (passwords)
sasl_server_userdb_checkpass_t (3)  - Plaintext Password Verification Callback
sasl_server_userdb_checkpass_t [sasl_canon_user_t] (3)  - Plaintext Password Verification Callback
sasl_server_userdb_setpass_t (3)  - UserDB Plaintext Password Setting Callback
sasl_setpass         (3)  - Check a plaintext password
saslpasswd           (8)  - set a user's sasl password
saslpasswd [saslpasswd2] (8)  - set a user's sasl password
setpwent [getpwent]  (3)  - get password file entry
shadow               (3)  - encrypted password file routines
shadow               (5)  - encrypted password file
slapd-passwd         (5)  - /etc/passwd backend to slapd
vigr [vipw]          (8)  - edit the password or group files
vipw                 (8)  - edit the password or group files
xdecrypt [xcrypt]    (3)  - RFS password encryption
xencrypt [xcrypt]    (3)  - RFS password encryption
ypchfn [yppasswd]    (1)  - change your password in the NIS database
ypchsh [yppasswd]    (1)  - change your password in the NIS database
yppasswd             (1)  - change your password in the NIS database
コマンド名などのキーワード (セクションNo) - 簡単な説明 という出力内容である。
info形式ドキュメントの表示(infoコマンド)
infoコマンドは指定したコマンドのinfo形式のドキュメントを表示します。manで見つからないときに使用するといいでしょう。

構文
info  [ オプション ]  コマンド名

オプション
--usage 指定したコマンドのオプションを表示する。
--vi-keys viのキー操作でinfoドキュメントを参照する。

wgetコマンドのオプションを表示する。
#info --usage wget
File: wget.info,  Node: Option Syntax,  Next: Basic Startup Options,  Prev: URL Format,  Up: Invoking

Option Syntax
=============

   Since Wget uses GNU getopts to process its arguments, every option
has a short form and a long form.  Long options are more convenient to
remember, but take time to type.  You may freely mix different option
styles, or specify options after the command-line arguments.  Thus you
may write:

     wget -r --tries=10 http://fly.srk.fer.hr/ -o log

   The space between the option accepting an argument and the argument
may be omitted.  Instead `-o log' you can write `-olog'.

   You may put several options that do not require arguments together,
like:

     wget -drc URL

   This is a complete equivalent of:

     wget -d -r -c URL

   Since the options can be specified after the arguments, you may
terminate them with `--'.  So the following will try to download URL
`-x', reporting failure to `log':

     wget -o log -- -x

   The options that accept comma-separated lists all respect the
convention that specifying an empty list clears its value.  This can be
useful to clear the `.wgetrc' settings.  For instance, if your `.wgetrc'
sets `exclude_directories' to `/cgi-bin', the following example will
first reset it, and then set it to exclude `/~nobody' and `/~somebody'.
You can also clear the lists in `.wgetrc' (*note Wgetrc Syntax::).

     wget -X '' -X /~nobody,/~somebody
     
--zz-Info: (wget.info.gz)Option Syntax, 40 行 --All-- 副ファイル: wget.info-1.gz------------------------------------
オンラインマニュアルページの表示(manコマンド)
説明
manコマンドはオンライン・マニュアルを整形して表示します。

構文
man  [ オプション ]  [ セクション ]  コマンド名またはファイル名

セクション
1 ユーザコマンド
2 システムコール
3 ライブラリ関数
4 デバイス
5 ファイルフォーマット
6 ゲーム
7 その他
8 システム管理コマンド
9 Linux 独自のカーネルルーチン
n 新しいドキュメント
o 古いドキュメント
l 独自のローカルドキュメント

オプション
-a 指定したコマンドやファイルと一致したmanをすべて表示する。
-M manページを検索するディレクトリのリストを指定する。
-P manを表示するプログラムを指定する。(デフォルトはlessコマンド)

catコマンドのオンラインマニュアルを表示する。
$man cat
CAT(1)                                                                  CAT(1)

名前
       cat - ファイルを連結して出力する

書式
       cat    [-benstuvABET]    [--binary]    [--number]   [--number-nonblank]
       [--show-all]    [--show-ends]    [--show-nonprinting]     [--show-tabs]
       [--squeeze-blank] [FILE...]

       cat [--help] [--version]

説明
       cat  は指定したファイルそれぞれの内容を標準出力へ書き出す。 FILE が一つ
       も与えられないと標準入力から読み込む。また FILE が `-' だった場合には、
       そのファイルには標準入力が用いられる。

オプション
       -b, --number-nonblank
              空白でない行に番号を付ける。初めの行を1行目とする。

       -e     `-vE' と同じ。

       -n, --number
              すべての行に番号を付ける。初めの行を 1行目とする。

       -s, --squeeze-blank
              連続した空白行を、1つの空白行にまとめる。

       -t     `-vT' と同じ。

       -u     何もしない。 Unix との互換性のために存在する。

       -v, --show-nonprinting
               とを除く制御文字を `^' 表記を使って表示する。高位
              ビットがセットされている文字は、前に `M-' を置いて表わす。

       -A, --show-all
              `-vET' と同じ。

       -B, --binary
              DOS プラットフォームのみ。ファイルの読み書きをバイナリモードで行
              う。バイナリ/テキストモードについては以下の記述を参照のこと。

       -E, --show-ends
              各行の最後に `$' を表示する。

       -T, --show-tabs
               文字を `^I' と表示する。

       --help 標準出力に使用方法のメッセージを出力して正常終了する。

       --version
              標準出力にバージョン情報を出力して正常終了する。

DOS の テキスト/バイナリ モード
       cat  はデフォルトではテキストモードを用い、標準出力がファイルまたはパイ
       プにリダイレクトされたときにはバイナリモードを用いる。この振舞いはオ プ
       ショ ンによって変更でき、 --binary や --show-nonprinting を指定すればバ
       イナリモードに、 --number-blank や --show-ends や --number を指定すれば
       テキストモードになる。

       テ キ ス トモードでは文字変換が行われる (例えば  へ、な
       ど)。したがって cat を使ったファイルコピーには適さない。オリジナルの 内
       容を保存しないからである。

注意
       プログラムのバグについては bug-textutils@gnu.org に報告してください。
       man   ページは Ragnar Hojland Espinosa  が作成しまし
       た。

GNU textutils 2.0               15 August 1999                          CAT(1)
コマンドの簡単な説明の表示(完全一致)(whatisコマンド)
aproposコマンドはキーワード(コマンド名など)とコマンドなどに関する簡単な説明が含まれたwhatisデータベースから、
指定したキーワードを検索し、完全一致したそのコマンドなどの簡単な説明を表示する。

構文
whatis  キーワード

キーワード「passwd」と完全一致するものを表示する。
#whatis passwd
passwd               (1)  - update a user's authentication tokens(s)
passwd               (5)  - password file
コマンド名などのキーワード (セクションNo) - 簡単な説明 という出力内容である。
コマンドのソース、バイナリ、manページの場所を表示(whereisコマンド)
whereisコマンドは指定したコマンドのソースやバイナリ、manページといった関連ファイルの場所(フルパス)を表示します。

構文
whereis  [ オプション ]  コマンド名

オプション
-b バイナリの場所のみ表示する。
-B バイナリを探すディレクトリを指定する。
-f -B、 -M、 -Sオプションでディレクトリを指定した場合はコマンド名の前に指定する必要がある。
-m manページの場所のみ表示する。
-M manページを探すディレクトリを指定する。
-s ソースの場所のみ表示する。
-S ソースを探すディレクトリを指定する。

passwdコマンドの各種ファイルの場所を表示する。
#whereis passwd
passwd: /usr/bin/passwd /etc/passwd /usr/share/man/man1/passwd.1.gz /usr/share/man/man5/passwd.5.gz
行頭はコマンド名で次から順にpasswdコマンドのバイナリの場所、passwdファイルの場所、passwdのセクション1のmanページの場所、
passwdのセクション5のmanページの場所を表示している。

/binディレクトリ内のコマンドのmanページの場所を表示する。
#cd /bin
#whereis -m *
arch: /usr/share/man/man1/arch.1.gz
ash: /usr/share/man/man1/ash.1.gz
ash: /usr/share/man/man1/ash.1.gz
awk: /usr/share/man/man1/awk.1.gz
basename: /usr/share/man/man1/basename.1.gz /usr/share/man/man3/basename.3.gz
bash: /usr/share/man/man1/bash.1.gz
bash2:
bsh: /usr/share/man/man1/bsh.1.gz
cat: /usr/share/man/man1/cat.1.gz
checkpassword:
chgrp: /usr/share/man/man1/chgrp.1.gz
chmod: /usr/share/man/man1/chmod.1.gz /usr/share/man/man2/chmod.2.gz
chown: /usr/share/man/man1/chown.1.gz /usr/share/man/man2/chown.2.gz
cp: /usr/share/man/man1/cp.1.gz
----------------------以下省略----------------------
コマンドのバイナリの場所を表示(whichコマンド)
whichコマンドはコマンドのバイナリの場所(フルパス)を環境変数PATHで指定されたディレクトリ内から検索して表示します。

構文
which  コマンド名

ifconfigコマンドの場所を表示します。
#env
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
#which ifconfig
/sbin/ifconfig
#su - hoge  ← 一般ユーザ
$env
PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/hoge/bin
$which ifconfig
/usr/bin/which: no ifconfig in (/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/hoge/bin)  ← /sbinにPATHが通っていないため見つけることができない。