Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 456  / 2 Years ago, sat, october 22, 2022, 12:02:06

How can this happen?



    jon@vaio:~/brickify$ /usr/bin/node -v
v0.8.11
jon@vaio:~/brickify$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
jon@vaio:~/brickify$ node -v
jon@vaio:~/brickify$


/usr/bin is in $PATH, so just writing node -v should work the same as writing /usr/bin/node -v


More From » paths

 Answers
1

You can see which version of a program is being invoked by using the which command, e.g.



which node

[#34989] Sunday, October 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
confiorc

Total Points: 42
Total Questions: 121
Total Answers: 123

Location: India
Member since Wed, Aug 26, 2020
4 Years ago
;