This question already has an answer here:

Correct me if I am wrong:

If I remember correctly, a command in terminal is linked to a specific executable(or maybe a script is also allowed?) in filesystem/disk.

For example, python runs python2.7 and python3 runs python3.

Now the problem is that I install 2 packages with same terminal command.

pip install packageA
pip3 install packageA

They both has the command packageACommand run. So I want to check the current packageACommand command infomation to see which python/what environments it's using.

And generally, I am wondering how can I view a command's (meta) information? Like checking what it acutally does/linked behind the scene?

marked as duplicate by muru, Community Aug 14 at 10:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.



which <command>

For example:

 $ which cat
  • Ah yes it is. I just can't remember. But some commands are binary executables and some are scripts. I can only open and read the scripts files. – Rick Aug 14 at 10:04

Not the answer you're looking for? Browse other questions tagged or ask your own question.