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?
Asked
Active
Viewed 764 times
2
-
2See https://stackoverflow.com/questions/304319/is-there-an-equivalent-of-which-on-the-windows-command-line – Henrik Høyer Feb 10 '21 at 15:28
1 Answers
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
-
2Very 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