![]() |
List tools that have "man" pages.
Hi,
"Man" pages are a handy help when one knows the name of the tool. However, in my old age I often forget the exact name of the tool. It should be possible to list all man pages and sift it trough a "grep" filter and thus find the exact name of the tool that one is trying to recall. For instance, when the partitions have been created with their file systems, reiserfstune is a handy tool that I use to set label (volume) names for the partitions with reiser FS. There is a similar tool for ext3 FS, but what is its name? I remember that it, too, has "tune" in its name. I also know that both of these tools have a "man" page. My problem is that I do not know of a way to list in CLI names of commands which have "man" pages, so I could then filter the list trough grep. It surely must be possible and easy. In Konqueror, an entry man:/<start of a name> shows the list of commands with man pages in a drop down list. Since it is done in GUI, it should be possible in CLI. Actually, with Konqueror I can find the command name for ext3 files, which is "tune2fs", but I would like to know a way to search for it in CLI. Any clues? TIA! OldAl, Canberra in winter . |
Could you maybe use apropos to search for commands with a keyword, e.g. "apropos ext3" (instead of using grep I mean)? I believe the command you're looking for is tune2fs.
|
Thank you, Nylex. Actually
Code:
apropos tune |grep fsThanks for jolting my memory, Nylex - apropos is indeed the answer. |
In addition to apropos, have a try at
Code:
man -k tune |grep fsCode:
man grepApropos and man -k outputs look the same to me now, but if I remember correctly, there can be cases where their outputs differ (the other shows more or less than the other). It can just be me, but I have a picture they're not 100% the same. |
Quote:
|
Well, Nylex, we are not going to argue about you reading it all in the first place. Let me just say, that I wrote it once and did not edit it afterwards, so whatever is in my post, it has been there since the first posting. May I suggest that you did not pay attention to what you read?
Anyway, your suggestion was very valuable and I gratefully acknowledge that with a big THANK YOU! |
Quote:
I learned a lot from the two replies - gratefully yours, |
....
I know that this is kind of a necro post since the topic is totally solved, but when I first saw this question I did '%~ man man' and found the -k switch from there
|
Quote:
Kind regards, |
Here is an alternative :)
findman.sh: Code:
#!/bin/bashCode:
./findman.sh -iname '*ext3*' |
Quote:
Thanks for your attention. |
Quote:
|
| All times are GMT -5. The time now is 08:16 AM. |