昼間の時間がどんどん長くなり、
前回紹介したソースコードに付属のドキュメントファイルはソフトウェアの詳細を知るには有効な資料ですが、
コマンドのヘルプメッセージ
最近のGNOMEやKDEといったデスクトップ環境においては、
% ls
ann-45.txt ann-52.txt ann-55.txt ann-57.txt answers-0829.txt
ann-46.txt ann-53.txt ann-56.txt answer-54.txt answers-0926.txt
これらCUI形式のコマンドの多くは、
% ls -ms
合計 44
4 ann-45.txt, 4 ann-46.txt, 4 ann-52.txt, 4 ann-53.txt, 4 ann-55.txt, 4 ann-56.txt, 4 ann-57.txt,
4 answer-54.txt, 4 answers-0829.txt, 8 answers-0926.txt
上記の例では -ms がオプション機能を指定するための引数で、
このようにUNIX/
% ls --help
使用法: /bin/ls [オプション]... [ファイル]...
指定されたファイルの情報をリスト出力する(指定なければ現在のディレクトリ).
-cftuSUX や --sort の指定がなくても、アルファベット順で整列する.
長いオプションに必須の引数は短いオプションにも必須です.
-a, --all do not hide entries starting with .
-A, --almost-all do not list implied . and ..
--author print the author of each file
-b, --escape print octal escapes for nongraphic characters
....
使うと --color=always を使うのと同等です。 --color=auto を使えば、接続された
端末(tty)の標準出力にのみカラーコードを出力します。
バグを発見したら <[email protected]> 宛に報告して下さい.
%
従来、
ヘルプメッセージでは
$ /sbin/mkswap -h
Usage: mkswap [-c] [-v0|-v1] [-pPAGESZ] [-L label] /dev/name [blocks]
この例では
なお、
manページ
manページとは、
% man ls
LS(1) LS(1)
NAME
ls, dir, vdir - list directory contents
SYNOPSIS
ls [options] [file...]
dir [file...]
vdir [file...]
POSIX options: [-CFRacdilqrtu1] [--]
GNU options (shortest form): [-1abcdfghiklmnopqrstuvwxABCDFGHLNQRSUX] [-w cols] [-T cols] [-I pattern]
[--full-time] [--show-control-chars] [--block-size=size] [--format={long,verbose,commas,across,vertical,sin
gle-column}] [--sort={none,time,size,extension}] [--time={atime,access,use,ctime,status}]
[--color[={none,auto,always}]] [--help] [--version] [--]
DESCRIPTION
The program ls lists first its non-directory file arguments, and then for each directory argument all listable
files contained within that directory. If no non-option arguments are present, a default argument `.' (the cur
....
manページで表示されるメッセージは /usr/
man はUNIXの初期のころから存在するオンラインドキュメントシステムで、
ほとんどのmanページはソフトウェアの作者が記述してソースコードと共に配布しており、
infoシステム
manページに代わるオンラインドキュメントシステムとしてGNUプロジェクトが採用しているのがinfoシステムです。infoシステムはmanと同様、
% info info
File: info.info, Node: Top, Next: Getting Started, Up: (dir)
Info: An Introduction
*********************
The GNU Project distributes most of its on-line manuals in the "Info
format", which you read using an "Info reader". You are probably using
an Info reader to read this now.
...
* Menu:
* Getting Started:: Getting started using an Info reader.
* Expert Info:: Info commands for experts.
* Creating an Info File:: How to make your own Info file.
* Index:: An index of topics, commands, and variables.
-----Info: (info.info)Top, 29 行 --All---------------------------------------------
Info バージョン 4.8 にようこそ。? で使い方、m でメニュー項目を呼び出せます。
この例では info コマンドについてページを見ています。infoシステムは一種のハイパーテキスト形式で作成されており、
GNUプロジェクトが提供しているソフトウェアではtexinfoと呼ばれるTeXのマクロを用いて記述されたドキュメント(拡張子はtexi)が用意されます。texinfo形式で記述されたドキュメントは、
infoシステムで表示されるページは /usr/
通常、