2

I just wanted to know if there was a way to find the path of the "curl" command on my computer. I open up the command prompt and I can execute the curl command no problem. But I have to wonder how does the command prompt know what the curl command is. I assume it is pointing to some executable somewhere. Is there a way to trace the location of the executable using the command prompt itself?

RJ123
  • 23
  • 2

1 Answers1

2

In Windows you can use the where command to locate programs

where curl.exe 

On my machine it answers:

C:\Windows\System32\curl.exe
Henrik Høyer
  • 1,225
  • 1
  • 19
  • 27
  • 2
    Very simple answer thankyou! I was looking at my system environment variables but it doesn't specify each command and their location. But this is useful to know! – RJ123 Feb 11 '21 at 16:12
  • [Here is the explanation](https://curl.se/windows/microsoft.html) of why cURL is located in System32. – Uwe Keim Mar 04 '23 at 20:13