僕の使っているコマンドラインツールの #ひかえめなアドベントカレンダー2023 12月15日分はmanとinfoです。マニュアルです。
いにしえから使われているツールにはmanページと呼ばれるマニュアルが付いている可能性が高いです。manというコマンドで閲覧できます。早速閲覧してみます。簡単な紹介、起動方法、詳細などが読めます。例や関連項目も役に立ちます。
$ man man
:
NAME
man - an interface to the system reference manuals
SYNOPSIS
man [man options] [[section] page ...] ...
:
DESCRIPTION
:
1 Executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
4 Special files (usually found in /dev)
5 File formats and conventions, e.g. /etc/passwd
6 Games
7 Miscellaneous (including macro packages and conventions), e.g. man(7), groff(7)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]
manページは上記のように節に分かれています。例えばprintfコマンドについては
$ man 1 printf
printfライブラリ関数については
$ man 3 printf
で閲覧できます。
GNU製のツールには、より詳細なinfoページが付いている可能性もあります。
$ info autotools
新しくツールを使い始める時には、ざっと使ってみて疑問に思ったことを頭におきつつmanやinfoを一読すると分かりやすかもしれません。使い慣れてきた頃に一読するとより多くの使い方を見つけられるかもしれません。