I guess it’s pretty simple.
I just want to locate a bash command. For example when I want to know which commands are existing, containing the phrase “user”.
So the command I am looking for should print me wether the location of all commands containing user, or it could just tell me which commands exist with the name. That would be fine though.
I searched here in so and on google, but well both of them just talk about the “find” command.
List of executable files or symlinks in your PATH that contain “user”:
sample output:
also a lot faster than wormsparty’s variant (no offence :P). Result almost identical (his returns directories too, AFAIK)