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.

marked as duplicate by Yaron, pa4080, Community Nov 22 '17 at 15:23

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.

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

Browse other questions tagged or ask your own question.