I did some research, but unfortunately my question was never answered. The closest question to mine is this: Search for bash command
What I need: A command to search for installed commands using wildcards. Let's say I want to unmount something but forgot the command. I know it contains "mount". So I would do something like this:
searchfor *mount*
To find that unmount
is the command I need. I know man -k
or yum whatprovides
. But that's not what I'm looking for. I want to search for all installed commands (that can be found in the directories provided by the $PATH
variable).
apropos
will do that and you don't need wildcards. – Nasir Riley Apr 01 '18 at 19:29apropos
is very close to my needs but not 100% what I asked for. Thanks anyway! – Daniel Hoop Apr 01 '18 at 19:42