next up previous contents
Next: aproposコマンド Up: 困ったときは Previous: 困ったときは   Contents

manコマンド

困ったときは質問したり、 ネットで検索するまえにmanコマンドを使う習慣をつけよう。

man コマンド名とすればヘルプを得られる。 例えば、manコマンドの使い方を知りたいとき、

man man

とすれば、以下のように、 コマンドの書き方(文法)、使用可能なオプションの種類など、 必要な情報を得られる。

man(1)                                                                  man(1)

NAME
       man - format and display the on-line manual pages

SYNOPSIS
       man  [-acdfFhkKtwW]  [--path]  [-m system] [-p string] [-C config_file]
       [-M pathlist] [-P pager] [-B browser] [-H htmlpager] [-S  section_list]
       [section] name ...

DESCRIPTION
       man formats and displays the on-line manual pages.  If you specify sec-
       tion, man only looks in that section of the manual.  name  is  normally
       the  name of the manual page, which is typically the name of a command,
       function, or file.  However, if name contains  a  slash  (/)  then  man
       interprets  it  as a file specification, so that you can do man ./foo.5
       or even man /cd/foo/bar.1.gz.

       See below for a description of where man  looks  for  the  manual  page
       files.



Ray S. FURUYA 2010-05-24