Good day all,

My #which ssh returns /usr/local/bin/ssh however I would like to return /usr/bin/ssh. Both /usr/local/bin/ and /usr/bin/ are in the $PATH. How do I achieve this?

  • 1
    Why do you have both of these? One ssh executable should be enough for anybody. :-) – Faheem Mitha Mar 23 '16 at 21:18

Rearrange $PATH. The first executable in $PATH is used (and that's what which returns).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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