title: How do I download a file from the internet to my linux server with Bash
body: <p>I recently had to upgrade to a VPS server (HostGator Linux) because I wanted to run a script that was a bit more complicated than the regular PHP db manipulation. I'm trying to install a JDK and Apache Ant (if it matters, for compiling Android Apps on server).</p>
  
  <p>I watched tutorials on Linux Bash and started using it. I am currently trying to install Java (with JDK and JRE) on to the server.</p>
  
  <p>I am following the tutorial on this page:
  <a href="http://www.oracle.com/technetwork/java/javase/install-linux-64-self-extracting-142068.html">http://www.oracle.com/technetwork/java/javase/install-linux-64-self-extracting-142068.html</a></p>
  
  <p>However, I don't know what to do at this line:</p>
  
  <ol>
  <li><p>Download and check the download file size.</p>
  
  <p>You can download to any directory that you can write to.</p></li>
  </ol>
  
  <p>How do I download Java from the command line?</p>
  
  <p>If it matters, I am running CentOS v5.8</p>