Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-26-2008, 11:59 PM   #1
LQ Newbie
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
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.
Old 07-27-2008, 01:33 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Hi, welcome to LQ!

man -k <search term>
Old 07-27-2008, 01:34 AM   #3
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,898

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
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.
Old 07-27-2008, 05:05 AM   #4
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 302
Blog Entries: 1

Rep: Reputation: 34
press tab twice you will be listed with possible commands, then man those commands like
man man
man useradd
man sudo
Old 07-27-2008, 03:31 PM   #5
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
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
apropos -s 1 <keyword>
For example see the difference between "apropos time" and "apropos -s 1 time".
Old 07-28-2008, 09:27 AM   #6
LQ Newbie
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
It is very useful, thank you everybody.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find/grep command to find matching files, print filename, then print matching content stefanlasiewski Programming 9 06-30-2016 06:30 PM
How to apply cups printer from command line? marisdembovskis Linux - Software 16 11-09-2007 07:54 AM
mount command failed to apply journal lotuseclat79 Linux - Software 4 09-07-2007 03:27 PM
bash script to apply sed command only to a specific text area mauran Programming 6 07-13-2007 05:38 PM
Improving the tab command line feature Slith(++1) Linux - General 3 09-23-2005 09:05 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration