LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
LinkBack Search this Thread
Old 08-01-2009, 01:47 PM   #1
Allie
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Rep: Reputation: 0
man -k not working


Hello community, I've tried to use man -k [someKeyword] on three distro, ubuntu 6.06, red hat 9 and Fedora core 5 and it never returns any command, it just says "nothing appropriate". What gives? Thanks
 
Old 08-01-2009, 01:51 PM   #2
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 325

Rep: Reputation: 42
What did you use for a keyword?
 
Old 08-01-2009, 01:52 PM   #3
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,362

Rep: Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910Reputation: 1910
Hi and welcome to LQ!

Can you provide an example of a keyword you used? I'd like to try on my Opensuse, since if I look for common words it works. Do the man pages work properly? And the apropos command?
 
Old 08-01-2009, 01:56 PM   #4
Allie
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by joeBuffer View Post
What did you use for a keyword?
I've tried all sorts of keyword such as disk, volume, raid. It didn't matter what word I type, it just doesn't work. Does the man page need to build a cache of keywords into a database of some sort? I've also tried apropos and still I don't get anything.
 
Old 08-01-2009, 01:56 PM   #5
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 325

Rep: Reputation: 42
Have you tried using mandb?
The mandb command is for creating or updating the caches.

Last edited by joeBuffer; 08-01-2009 at 01:57 PM.
 
Old 08-01-2009, 02:34 PM   #6
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,614

Rep: Reputation: 164Reputation: 164
Quote:
Does the man page need to build a cache of keywords into a database of some sort?
Yes, it's done using makewhatis. RehHat-type distros have a daily cronjob for it that
does this:
Code:
makewhatis -u -w
 
Old 08-01-2009, 02:52 PM   #7
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 325

Rep: Reputation: 42
I've read things that say mandb and things that say makewhatis, they're both used for this, but different distributions use different things.

Last edited by joeBuffer; 08-01-2009 at 03:00 PM.
 
Old 08-01-2009, 02:57 PM   #8
Allie
LQ Newbie
 
Registered: Aug 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Berhanie View Post
Yes, it's done using makewhatis. RehHat-type distros have a daily cronjob for it that
does this:
Code:
makewhatis -u -w
That was it! I typed in this command and it took awhile to build the cache but right afterwards it work. This was for Fedora 5. On my RH 9, I didn't have to do anything and today man -k returned results so system must have automatically built the cache. I've tried mandb on RedHat distro but this command doesn't work. It may be for another distro but same concept. Cool.
 
Old 08-01-2009, 03:02 PM   #9
joeBuffer
Member
 
Registered: Jul 2009
Distribution: Ubuntu 9.04
Posts: 325

Rep: Reputation: 42
That's good.
I read just after posting here that makewhatis is used for some and mandb for others, I'm using Ubuntu 9.10 and it doesn't come with makewhatis, and I read that Debian also uses mandb ... so if you use it for Ubuntu you might have to use mandb unless you install makewhatis ...
 
  


Reply

Tags
man


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
working for the man. nchoe123 LinuxQuestions.org Member Intro 2 04-09-2009 11:57 AM
LXer: Working for The Man LXer Syndicated Linux News 1 04-06-2007 01:38 PM
Man command not working chunkymunky Linux - Newbie 2 12-02-2003 03:12 PM
Man not working Zeseft Linux - Software 7 12-02-2003 01:51 PM
ping not working in Man 9.0/9.1 CIO_BlackRainbo Linux - Distributions 2 06-23-2003 01:19 PM


All times are GMT -5. The time now is 02:40 PM.

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