“type” and “which” programs coming up empty for programs on the path

bash

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:

kafka-

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?

Best Answer

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.