Thursday, April 7, 2022

[SOLVED] wget & curl output "No such file or directory"

Issue

wget https://some.url/with/a/file.txt

Returns No such file or directory despite file.txt being present at the location (can be downloaded via browser). Also the directory to save to is writeable by the user running the command.


Solution

There are a lot of related threads but nothing helped.

Finally found out there is an illegal character in front of the url!

That was so hard to find I post it here in case anyone stumbles upon the same.



Answered By - steros
Answer Checked By - Candace Johnson (WPSolving Volunteer)