Can one list commands documented by man?  [Solved]

Message
Author
arm45
Posts: 30
Joined: Tue Oct 22, 2019 4:14 pm

Can one list commands documented by man?

#1 Post by arm45 »

I've recently had a need to monitor disk activity. Not knowing the Linux utilities to do that I went to the web and found explainations on how to use several utilities to monitor disk activity (iostat, iotop, dstat, etc) and seem to have found that they are not part of mxlinux's utility set (systemd utilities?).

Alright I said, I then went to look to mxlinux's (19.3) 'man' to see how to list all command line utilities supported by 19.3 but, reading man's help, I could not discover how to list commands in man.

Is there a way to do this?

TIA,

User avatar
Adrian
Developer
Posts: 9272
Joined: Wed Jul 12, 2006 1:42 am

Re: Can one list commands documented by man?

#2 Post by Adrian »

I think you misunderstand what the man pages are, it's not a manual of all the apps available, each program could come with a manual page, but it might not. So you could have programs on your system that don't have man page and any other program available in the repo would not have the man page install till you install the program.

To see the installed programs you could use Synaptic, MX PackageInstaller, "dpkg -l" there are a number of ways to list installed programs. But if somebody recommends you "just run iotop" and you type iotop in the terminal and it tells you "command not found" then that's a clear sign you don't have it installed and you go ahead and search for it in your favorite package manager (Synaptic, MX PackageInstaller, "apt search", and so on).

User avatar
i_ri
Posts: 1158
Joined: Tue Jun 30, 2015 12:26 am

Re: Can one list commands documented by man?

#3 Post by i_ri »

hello arm45 and Adrian and everyone

Did you disk monitor to your satisfaction?

Even listing packages does not expose what commands are inside.
usr/bin is a place to start. it seems as you wish be handed file names.
Example of your question there is a command for that in mx.
recent updates have brought <rofi> into mx. (19)
another man for you. rofi.
run this to see commands

Code: Select all

rofi -show run
mx versions after December 2020 should have rofi. versions before that may not have it installed without opting for mxfluxbox additions in the last hundred days.

User avatar
Adrian
Developer
Posts: 9272
Joined: Wed Jul 12, 2006 1:42 am

Re: Can one list commands documented by man?

#4 Post by Adrian »

mx versions after December 2020 should have rofi
What is rofi and why do I need it on my system?

User avatar
i_ri
Posts: 1158
Joined: Tue Jun 30, 2015 12:26 am

Re: Can one list commands documented by man?

#5 Post by i_ri »

Hello Adrian
I should not have used the word should can be interpreted as a recommendation; should have said the system may contain rofi, because rofi was pushed with mxfluxbox as a application launcher.
therefore i pointed to rofi as a possible step to answer the question "how to list all command"

all? how about bash completion. where is all?

edit add. back after a
search: linux list all commands. is a stepping . a search site is your friend.

Code: Select all

compgen -c | sort -u | more

Code: Select all

whatis `compgen -c` | sort -u | more
arm45 is that a start? you have rofi in your system?
even if not complete list there, it is a start, after you read the instructions about each,, you can return to tell of more ways to list all commands.

arm45
Posts: 30
Joined: Tue Oct 22, 2019 4:14 pm

Re: Can one list commands documented by man?

#6 Post by arm45 »

Adrian wrote: Tue Mar 23, 2021 3:52 pm I think you misunderstand what the man pages are, it's not a manual of all the apps available, each program could come with a manual page, but it might not. So you could have programs on your system that don't have man page and any other program available in the repo would not have the man page install till you install the program.

To see the installed programs you could use Synaptic, MX PackageInstaller, "dpkg -l" there are a number of ways to list installed programs. But if somebody recommends you "just run iotop" and you type iotop in the terminal and it tells you "command not found" then that's a clear sign you don't have it installed and you go ahead and search for it in your favorite package manager (Synaptic, MX PackageInstaller, "apt search", and so on).
Thank you for your reply Adrian (sorry for the delay in response).

I was under the impression that each linux distibution had a utility set that may, or may not, be specific to that distribution and that the 'man' pages that came with that distribution would have something akin to a Table of Contents that could be displayed. I was wrong. Apparently the number of utilities and the complexities of their organization precludes such a format.

I thought a simple question would lead to a simple answer... Nope.

A deeper dive into Google led me to install (SYSSTAT), as one of its utilities (IOSTAT) provides an instantanious snapshot of I/O information on the device level, that being the information that started me on this search.

Again, thank you for your reply.

arm

arm45
Posts: 30
Joined: Tue Oct 22, 2019 4:14 pm

Re: Can one list commands documented by man?  [Solved]

#7 Post by arm45 »

i_ri wrote: Wed Mar 24, 2021 8:03 am Hello Adrian
I should not have used the word should can be interpreted as a recommendation; should have said the system may contain rofi, because rofi was pushed with mxfluxbox as a application launcher.
therefore i pointed to rofi as a possible step to answer the question "how to list all command"

all? how about bash completion. where is all?

edit add. back after a
search: linux list all commands. is a stepping . a search site is your friend.

Code: Select all

compgen -c | sort -u | more

Code: Select all

whatis `compgen -c` | sort -u | more
arm45 is that a start? you have rofi in your system?
even if not complete list there, it is a start, after you read the instructions about each,, you can return to tell of more ways to list all commands.
Hello i_ri, Thank you for your reply (sorry for the delay in response).

I've not yet looked at 'rofi' or 'compgen' so I cannot comment now (I'll do so later) but I did find

Code: Select all

https://www.kernel.org/doc/man-pages/
which is a resource that I had not known about.

I've also now looked at

Code: Select all

man man
and

Code: Select all

man intro
Both man functions promise to be useful to me in the future.

Again, thanks,

arm45

User avatar
oops
Posts: 2051
Joined: Tue Apr 10, 2018 5:07 pm

Re: Can one list commands documented by man?

#8 Post by oops »

You can also try:

Code: Select all

man hier
Pour les nouveaux utilisateurs: Alt+F1 pour le manuel, ou FAQS, MX MANUEL, et Conseils MX Conseils Debian - Info. système “quick-system-info-mx” (QSI) ... Ici: System: MX-19-23_x64 & antiX23_x32 runit

arm45
Posts: 30
Joined: Tue Oct 22, 2019 4:14 pm

Re: Can one list commands documented by man?

#9 Post by arm45 »

oops wrote: Wed Mar 24, 2021 10:13 pm You can also try:

Code: Select all

man hier
Another resource learned about!

Thanks,

arm45

Post Reply

Return to “General”