LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to find a command to apply for a feature? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-find-a-command-to-apply-for-a-feature-658492/)

mrbaby113115 07-26-2008 10:59 PM

How to find a command to apply for a feature?
 
I just begin study Linux, and there is something i want to do, but i do not know what command to use. So is there any way to search command to apply for a feature in Linux?

Is there anybody help me, please? thank first.

Tinkster 07-27-2008 12:33 AM

Hi, welcome to LQ!

will
man -k <search term>
suffice?

bigrigdriver 07-27-2008 12:34 AM

I beleive the command you want is apropos. The syntax to use is: apropos <feature>.

For example, 'apropos flash' on my box returns:
apropos flash
beep (3ncurses) - curses bell and screen flash routines
flash (3ncurses) - curses bell and screen flash routines
gnash (1) - GNU Flash Player
Image::ExifTool::Flash (3pm) - Read Shockwave Flash meta information
Image::ExifTool::FlashPix (3pm) - Read FlashPix meta information
ppmflash (1) - brighten a picture to approach white

which returns the command to use and a brief description of what the command does.

hasanatizaz 07-27-2008 04:05 AM

press tab twice you will be listed with possible commands, then man those commands like
man man
man useradd
man sudo
etc......

colucix 07-27-2008 02:31 PM

man -k and apropos are equivalent. Using apropos you can restrict the search to specific sections of the manual. For example if you are looking for executable programs or shell commands (section 1) and you are not interested in library calls (section 3) or other stuff, you can do
Code:

apropos -s 1 <keyword>
For example see the difference between "apropos time" and "apropos -s 1 time".

mrbaby113115 07-28-2008 08:27 AM

It is very useful, thank you everybody.


All times are GMT -5. The time now is 09:59 PM.