Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
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?
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.
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.
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 ...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.