It’s a very common task to need to download a file on the command line of a remote server. This is fine when the URL is a direct link to a file. However, often things get annoying and the download link has some PHP that redirects to the actual location of the file e.g.: https://www.process-one.net/downloads/downloads-action.php?file=/20.12/ejabberd_20.12-0_amd64.deb Fortunately, cURL can help you here. All you need to do is use it as follows: curl -L <URL> -o <OUTFILE> Using the example URL...