June 2025
Beginner to intermediate
473 pages
13h 30m
English
Linux users especially are familiar with the curl and wget commands. These commands are primarily used to download files in the terminal. curl displays the contents of the downloaded file by default; however, the output can be saved to a file by using -o (an “oh”/not a “zero”). wget saves the file to the local directory by default. If the filename is not clear from the URL, the site’s default home page filename is used (often index.html). To display the file in standard output, you should use -O (“oh” again) followed by the desired filename or - for standard output.
$ curl https://example.com/some/file.txt -o file.txt$ wget https://example.com/some/file.txt
On Linux and macOS, curl is available by default. ...
Read now
Unlock full access