4

I was trying to install a newer version of curl and when I ran: curl -V, the version number didn't change.

After running which curl, it displayed the path of the newly installed version: /usr/local/bin/curl. If I run /usr/local/bin/curl -V it displays the correct version.

The version being executed by curl seems to be in /usr/bin.

My PATH is: /usr/local/bin:/usr/bin ... etc, so it should be executing the /usr/local version.

Why is the output of which curl not the same as the program being executed by curl?

JayMech
  • 41
  • 1

0 Answers0