I'm new to Linux, and watching this video on the curl
command (min 6.55). The video uses a Windows computer to download a Ubuntu file from the Ubuntu webpage. The user gets the URL to download via curl
by clicking into 'show all downloads' and this gives him the full path to the download link in order to be able to download it from his command prompt
My question is; on a Mac or Linux distribution, how can I find this URL to download a file with curl
?
I don't just mean for this webpage, but for any webpage in general. Most webpages don't have the option the install something via curl
but it would be useful to know how to do this
CodePudding user response:
you need to provide the link by yourself. In GUI, you right-click the link and copy the address. if you only have CLI, you can, for example, use curl or wget and download the source code of the page. After that, you can use a text editor or cat/more/less command and find the section.
CodePudding user response:
found the answer. Using Google Chrome as a browser, go into Chrome Downloads (Opt Cmd L) and after downloading it via Chrome you will see the full link to the file in the Downloads which can then be copied to a curl command