Linux man命令查詢功能

panpong發表於2014-08-18

Linux man命令查詢功能

       Linux系統下很多時候都要用到man命令來查詢其他命令的解釋;用好man命令能很好的幫助我們完成各種操作;man命令通常是在已知某一命令,需要了解其使用方法和功能時來查詢,如:man ls

#man man –瞭解man命令的使用方法

 

下面介紹一個有用的man命令選項:-k;其作用在不知道linux都有什麼命令時,可用透過-k選項統配查詢man命令可查的所有命令名稱和命令釋義;

[root@db2 Packages]# man -k sar

lvmsar               (8)  - LVM system activity reporter

perlglossary         (1)  - Perl Glossary

sadf                 (1)  - Display data collected by sar in multiple formats

sar                  (1)  - Collect, report, or save system activity information

strip      (1p)  - remove unnecessary information from executable files (DEVELOPMENT)

timer_gettime [timer_settime] (2)  - arm/disarm and fetch state of POSIX per-process timer

timer_settime        (2)  - arm/disarm and fetch state of POSIX per-process timer

 

另外,與man –k等效的還有一個命令:apropos

[root@db2 Packages]# apropos sar

lvmsar               (8)  - LVM system activity reporter

perlglossary         (1)  - Perl Glossary

sadf                 (1)  - Display data collected by sar in multiple formats

sar                  (1)  - Collect, report, or save system activity information

strip    (1p)  - remove unnecessary information from executable files (DEVELOPMENT)

timer_gettime [timer_settime] (2)  - arm/disarm and fetch state of POSIX per-process timer

timer_settime        (2)  - arm/disarm and fetch state of POSIX per-process timer

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/16976507/viewspace-1252887/,如需轉載,請註明出處,否則將追究法律責任。

相關文章