Often, download the packages or files from the different websites using the WGET command in the Linux distro. I would like to specify the location to save the file to the destination with a file name and extension.
-O, --output-document=FILE write documents to FILE
wget <URI> -O /path/to/file.ext
$ sudo wget http://updates.jenkins-ci.org/latest/jenkins.war -O /usr/share/jenkins/jenkins.war
-P prefix
--directory-prefix=prefix
Set directory prefix to prefix. The directory prefix is the
directory where all other files and sub-directories will be
saved to, i.e. the top of the retrieval tree. The default
is . (the current directory).
--directory-prefix=prefix
Set directory prefix to prefix. The directory prefix is the
directory where all other files and sub-directories will be
saved to, i.e. the top of the retrieval tree. The default
is . (the current directory).
wget <URI> -P /path/to/folder
Comments (0)