Article 4Z2XM Confusing results using which

Confusing results using which

by
hairypaulsack
from LinuxQuestions.org on (#4Z2XM)
Event Order:
  1. $apt install mosquitto
    mess around, failed, found out needed to build from source
  2. dl src and build then install
  3. $which mosquitto
    /usr/local/sbin/mosquitto
  4. $apt remove mosquitto
  5. $which mosquitto
    /usr/local/sbin/mosquitto
  1. I could swear 'which' has shown me 2 locations of a file just like windoze does with 'where'
  2. If I were to guess, the first 'which' was referring to the apt install and the second the source build? Or are these like shortcuts / symlink hardlinks?
latest?d=yIl2AUoC8zA latest?i=BdF8q1DkWl8:CEjlSnge5zA:F7zBnMy latest?i=BdF8q1DkWl8:CEjlSnge5zA:V_sGLiP latest?d=qj6IDK7rITs latest?i=BdF8q1DkWl8:CEjlSnge5zA:gIN9vFwBdF8q1DkWl8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments