MANコマンド

| | コメント(0) | トラックバック(0)

1 ユーザーコマンド

2 システムコール

3 ライブラリ

4 デバイスファイル

5 ファイルフォーマット

6 ゲーム

7 その他

8 システム管理コマンド

9 Linux関連カーネル用ドキュメント

[root@localhost ~]# man 5 passwd

-a で全てのマニュアルページを参照

[root@localhost ~]# man -a passwd

man -f = whatis
[root@localhost ~]# whatis crontab
crontab              (1)  - maintain crontab files for individual users (ISC Cron V4.1)
crontab              (1p)  - schedule periodic background work
crontab              (5)  - tables for driving cron (ISC Cron V4.1)
[root@localhost ~]#

 

-kコマンドでコマンドを部分的に忘れていてもコマンド一覧を出してくれる。

[root@localhost ~]# man -k cron
anacron              (8)  - runs commands periodically
anacron             (rpm) - A cron-like program that can run jobs lost during downtime.
cron                 (8)  - daemon to execute scheduled commands (ISC Cron V4.1)
crontab              (1)  - maintain crontab files for individual users (ISC Cron V4.1)
crontab              (1p)  - schedule periodic background work
crontab              (5)  - tables for driving cron (ISC Cron V4.1)
crontabs            (rpm) - Root crontab files used to schedule the execution of programs.

apropos = man -k xxxx

[root@localhost ~]# apropos cron
anacron              (8)  - runs commands periodically
anacron             (rpm) - A cron-like program that can run jobs lost during downtime.
cron                 (8)  - daemon to execute scheduled commands (ISC Cron V4.1)
crontab              (1)  - maintain crontab files for individual users (ISC Cron V4.1)
crontab              (1p)  - schedule periodic background work
crontab              (5)  - tables for driving cron (ISC Cron V4.1)
crontabs            (rpm) - Root crontab files used to schedule the execution of programs.

infoコマンド

[root@localhost ~]# info shuttdown

whichコマンドでパスを見付ける
[root@localhost ~]# which bash
/bin/bash

whichコマンド応用

[root@localhost ~]# rpm -qf `which bash`
bash-3.1-16.1
[root@localhost ~]# rpm -qf `which mysql`
mysql-5.0.22-2.1.0.1

whereisコマンド

-m マニュアルを検索

-b バイナリーファイルを検索

-s ソースファイルを検索

[root@localhost ~]# whereis -m ifconfig
ifconfig: /usr/share/man/man8/ifconfig.8.gz
[root@localhost ~]# whereis -b ifconfig
ifconfig: /sbin/ifconfig

カテゴリ

,

トラックバック(0)

このブログ記事を参照しているブログ一覧: MANコマンド

このブログ記事に対するトラックバックURL: http://variable.jp/mt/mt-tb.cgi/60

コメントする

このブログ記事について

このページは、管理者が2007年11月 4日 01:29に書いたブログ記事です。

ひとつ前のブログ記事は「Apache on 64bit」です。

次のブログ記事は「ニュースグループ」です。

最近のコンテンツはインデックスページで見られます。過去に書かれたものはアーカイブのページで見られます。

Powered by Movable Type 4.0