How can I check from which directory the program in one of the directories in PATH was executed?

For example, I am running the following command:


and would like to check where this program is actually located.

I am using WSL and get the impression that PATH variables get somehow mixed up between Windows and Ubuntu.

  • 1
    Thanks! Indeed, this is what I was looking for. Just didn't know how to phrase the question properly.
    – Amade
    Nov 22, 2017 at 15:23


Browse other questions tagged or ask your own question.