Saturday, April 2, 2011

Download a File From Linux Command Line Terminal

Getting a file from the internet using the command line is super easy. Simply cd to the directory you want:
   cd /var/www/images

And use wget to download the file you need:
   wget http://www.someplace.com/image3.jpg

That's it! Don't let it fool you, wget is a very advanced tool. For more usage examples go here:
   http://en.wikipedia.org/wiki/Wget#Using_Wget

No comments:

Post a Comment