Uber-noob ? about commands

I know this is probably some super entry level information that I should have found long ago, but I can’t find it anywhere.

How the hell do I find what the command is for a given package? Is there a command to find the command? The only way I currently know of is by searching the internet, but I’d like to be able to do this from the terminal.

usually it’s one of those:

program --help
program -h
man program

But wouldn’t program in this scenario be the command itself? I’ve tried this using the package name and I get “command not found” error from bash.

If command is not found you probably haven’t installed that program correctly or are using the incorrect name of the program

Not necessary, it’s binary file inside of package, what package you wanted to know info about?

For example to view manual for man itself, it would be:

man man

I just tried this with xorg-xmodmap, which I’m looking at the pacman search of right now and that says it is installed and I’m getting the command not found error. The command is certainly different than the package name in many situation.

@keybreak xorg-xmodmap, which I am likely misunderstanding the use of, but I remember using something similar, if not this exact package previously through the command line.

Let me try this with some other packages.

Oh, try to list all the binary files of that package:

pacman -Qlq xorg-xmodmap | grep "/bin"

So the command should be xmodmap

man xmodmap
xmodmap --help
1 Like

Ah yeah, that’s the thing I’m looking for. I probably could have hashed that out from your previous reply reminding me that commands are just binaries. Thank you very much.

1 Like

In addition to the above, there are lots of useful commands for searching info and help:

  • yay -Qn
  • yay -Qm
  • pacman -Ss word(s)
  • yay -Ss word(s)
  • pacman -Fl <package-name> | grep usr/bin
  • eos-apps-info-helper <package-name>
  • eos-apps-info-helper <command-name>

just to name only a few…

1 Like

Just to be nitpicky: executables are not necessarily binaries. Some are text files (usually we call them scripts). :frog:

4 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.