I want to download a file with curl and it doesn't work!
curl -O https://github.com/systems-cs-pub-ro/uso/raw/master/tema1/help/hello.o
This is the example that I saw on many official sites. They say that the command above downloads the file hello.o. It doesn't! It just downloads some kind of output and stores it in a file with the same name.
If I run the command above, and I print the content of hello.o, it says:
<html><body>You are being <a href="https://raw.githubusercontent.com/systems-cs-pub-ro/uso/master/tema1/help/hello.o">redirected</a>.</body></html>
The dimension of hello.o is 147 Bytes.
Also, if I type
wget https://github.com/systems-cs-pub-ro/uso/raw/master/tema1/help/hello.o
it downloads the file hello.o exactly how it is! Now, it's dimension is 1,2 K
Is there a way to download the file hello.o using curl, exactly how I can download it using wget?
Thank you respectfully.