Linux – How to download a file via the Linux command line

command-line-interfacefedorajavalinux

I'm normally a windows user and I am currently using PuTTY to connect to a headless linux box that is running Fedora 8. I need to download the latest JDK and install it but I have to do it using the command line.

How can I do this?

Best Answer

You download files using the command line by using wget:

wget http://domain.com/path/to/file

See the wget man page for options.