Confusing results using which
by hairypaulsack from LinuxQuestions.org on (#4Z2XM)
Event Order:


- $apt install mosquitto
mess around, failed, found out needed to build from source
- dl src and build then install
- $which mosquitto
/usr/local/sbin/mosquitto
- $apt remove mosquitto
- $which mosquitto
/usr/local/sbin/mosquitto
- I could swear 'which' has shown me 2 locations of a file just like windoze does with 'where'
- 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?