Here is an example of a program that is in the path, find-able by tab / command-completion and accessible but not found by which:


enter image description here

However running which kafka or type kafka comes up empty handed

enter image description here

Why would these programs not be working properly?


As you can see in your first screenshot, there is no application called and ‘kafka-‘. Therefore, it cannot look up its path.

Try, for example, ‘which kafka-configs’ and it will show you the path.

|improve this answer|||||
  • Oh so it's simply that _auto_completion does not work.. I seem to recall auto-completion working .. maybe just in linux? I am trying now on my AWS instance .. – javadba May 11 '19 at 5:18
  • ah i guess autocompletion simply does not work for them. Not sure where/why I had the impression it did.. – javadba May 11 '19 at 5:20
  • autocompletion does not know what to do because there are too many choices. I guess you produced the first screenshot by double tapping? Only recently i noticed that there can be different behaviours for autocompletion. Some (maybe newer versions?) cycle through the commands, which is maybe what you are expecting to see, and some wait until you give them another clue, i.e. letter. But this is may be another question ;) – n1000 May 11 '19 at 5:32
  • It's not the case that there are too many choices - given that auto-completion for just executing the command works fine. It appears that these commands really do not have auto-completion and I'm "remembering" a behavior that did not exist. – javadba May 11 '19 at 5:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .