![]() In previous examples, we have downloaded the files in the present working directory. Download File to Specific Directory with Wget Command Wget Download File with a Different Name 3. ![]() In this example, we are downloading the Go binary file and saving it as go.tar.gz. The -O option allows you to save the file you are downloading using a different name. Rename a File While Downloading with Wget Command In this example, we are downloading the latest Go binary file to our current working directory. Without any command options, the Wget command simply downloads the file from the URL provided. Download a File with Wget Command in Linux Without much further ado, let us brush over some wget command usages and options. The URL is the domain or the link to the resource or file to be downloaded. The options refer to the flags or command-line arguments used along with the wget command to determine how the command will be executed. The wget command utility takes the syntax shown. ![]() Here’s how to install the wget command in various Linux distributions. You can easily install the wget tool using your distribution’s package manager. If not installed, you will get the following error. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |