Linux 上面有太多的工具,怎样快速找到一个自己想要的工具。

第一步:
1. 用关键字搜索man 的手册。
man -k  "keyword"
apropos ""keyword"

2. 用关键字在源里面去搜索。
apt-cache search "keyword"

 

前两部可以用grep 去过滤关键字。


3. 当然邮件组,reddit.com, google, find your the expert in the related field.

第二部:读文档。
  1. 可能可以借用 whatis 命令,去查看。
      whatis less-
  2. man 或者 info 手册
      man keyword
  3. 命令官方网站,或者论坛,以及对应的邮件组

 

成功案例:想找一个bash的调试工具。

第一步:

搜索关键字 bash debug

 

man -k bash | grep debug

apt-cache search | grep debug

 

bashdb - BASH debugger
ddd - The Data Display Debugger, a graphical debugger frontend
libvuurmuur-dbg - netfilter frontend (library debug)
vuurmuur-conf-dbg - netfilter frontend (ncurses GUI debug)
vuurmuur-dbg - netfilter frontend (utilities debug)

找到一个bashdb 比较像:

 

第二部: 查看命令。

用whatis 命令查看:

whatis bashdb
bashdb (1)           - bash debugger script


man  bashdb

SEE ALSO
       ·   <http://bashdb.sourceforge.net/bashdb.html> - an extensive
           reference manual.

 

       ·   <http://bashdb.sourceforge.net> - the homepage for the project

       ·   <http://www.gnu.org/software/bash/manual/bashref.html> - bash
           reference manual

 

也这样可以用google,接用google,搜以下bashdb 

 

得到官方网站以及手册:

http://bashdb.sourceforge.net/

http://bashdb.sourceforge.net/bashdbOutline.html

基本上读一下手册,问题找到答案了。 如果会gdb,直接就上手了。

 

 

posted on 2010-11-29 00:59  RocZhang  阅读(316)  评论(0编辑  收藏  举报