LinuC 1-101 勉強
07/23
man のセクション番号
が覚えられないので語呂合わせを考えてみる。
ユーザのシステムをライブでデバイス設定するゲーム
セクション番号 | 説明 |
---|---|
1 | ユーザーコマンド |
2 | システムコール |
3 | ライブラリ |
4 | デバイスファイル |
5 | 設定ファイル |
6 | ゲーム |
man コマンドを叩ける環境が手元にない。仮想マシンを立てるべきか。
man コマンドオプション
-k (--apropos)
-k, --apropos Equivalent to apropos. Search the short manual page descriptions for keywords and display any matches. See apropos(1) for details.
NAME
apropos - search the manual page names and descriptions
DESCRIPTION
Each manual page has a short description available within it.
apropos searches the descriptions for instances of keyword.
search A for B
: B を求めて A を調べる,探す (引用)
page names / descriptions にキーワードを 含む ものを検索する。apropos
は "適切に","折よく" といった意味。
$ man -k cron cron (8) - daemon to execute scheduled commands (Vixie Cron) crontab (1) - maintain crontab files for individual users (Vixie Cron) crontab (5) - tables for driving cron keep-one-running (1) - run just one instance at a time of some command and unique set of arguments (useful for cronjobs, eg) run-one (1) - run just one instance at a time of some command and unique set of arguments (useful for cronjobs, eg) run-one-constantly (1) - run just one instance at a time of some command and unique set of arguments (useful for cronjobs, eg) run-one-until-failure (1) - run just one instance at a time of some command and unique set of arguments (useful for cronjobs, eg) run-one-until-success (1) - run just one instance at a time of some command and unique set of arguments (useful for cronjobs, eg) run-this-one (1) - run just one instance at a time of some command and unique set of arguments (useful for cronjobs, eg)
-f (--whatis)
-f, --whatis Equivalent to whatis. Display a short description from the manual page, if available. See whatis(1) for details.
NAME whatis - display one-line manual page descriptions DESCRIPTION Each manual page has a short description available within it. whatis searches the manual page names and displays the manual page descriptions of any name matched.
$ man --whatis cron cron (8) - daemon to execute scheduled commands (Vixie Cron) $ man --whatis crontab crontab (5) - tables for driving cron crontab (1) - maintain crontab files for individual users (Vixie Cron)
-k
, apropos
と違い、page name がキーワードに 一致 するものを検索する。