Wget will store files in the current directory by default. You can use the -P
option to specify the directory where you want to save the file.
Now my current directory is /root
, download the .ico file you downloaded previously, but this time save it with -P
option to the /root/wget
.
wget -P wget/ https://vpsname.com/favicon.ico
You can use ls wget
to see if the file was saved in the wget
directory.