wget - specify directory and rename the file
Solution 1:
You have to either specify the -P
or the -O
, for example:
wget --directory-prefix="/home/admin/" http://someurl
OR
wget --output-document="/home/my_new_file_name" http://someurl
In the first example it will download anything you want to the specified directory and at the 2nd example it will download the file with the new given name to the given directory.