This question explains how to do it with
curl. The accepted answer also points out that
If wget is available, that would be far simpler.
I looked through
man wget but the got lost in there, and didn't find an option to follow redirects.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Click the link, you'll get redirected, and you'll see something like "Redirecting... if you are not automatically redirected, click the direct link.
Copy that [direct] link's location, paste it in the command-line like this
That's it! It worked for me.
Edit: You should omit everything after the '?' character in the url, or else the filename will also have this part.