Quote:
|
I want to know the command to store the file from a known URL to my shell window
|
That doesn't really make sense. The standard output of wget is not the file, but rather the info about what it's doing ('Downloading file... 4 bytes... etc').
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'.