Saving a file from a known URL
How to save a file from a known URL to my shell window when i don't have GUI
|
use wget or curl
|
Filename
wget url
saves the output to whatever original file is called, for example: wget http://google.com/index.html saves the output as index.html. To specify a different filename: wget -O YourFileNameChoice.html http://www.google.com/index.html |
I want to know the command to store the file from a known URL to my shell window
|
Quote:
wget always 'stores' (saves) the file to your current directory, whether you want it to or not. If you want to suppress the standard output, and have a command which will download a file and then print the files contents to your terminal screen, try this: wget -q -O yourfilename.html http://www.somesite/somepage.html && less yourfilename.html This will download the file without giving any standard output (-q means 'quiet' mode), save it to your current working directory with whatever filename you specify after the -O flag, then open up that same file for viewing using 'less'. You could also use 'more' or your favourite text editor, eg 'vim', 'emacs', in place of 'less'. |
All times are GMT -5. The time now is 05:29 AM. |