![]() ![]() The –O option for the wget instruction can make us download the specific file with a different name or a title, can be saved with a new name. You just need to mention the URLs of those files, one after another, in the wget instruction as shown in the following: Just like that, you can download more than one file at a time with the wget instruction. The list command shows that the “wget-2.2.0.0.tar.gz” is successfully saved at the current working directory. Using the “tar” query with the “-xf” option and the file name, we extract the file from this “tar” file to its original folder. On listing the home folder contents with the “ls” query, we found that the downloaded file is successfully saved to its destination address. Within no more than 4-5 seconds, the file is successfully downloaded and saved into the home folder of the Linux system with its original name. The processing for downloading this file is showed in the last line, not yet downloaded. The specific file starts to download in no time as shown. We use the wget instruction with the URL to download a tar file of the wget and press the Enter button. For an instance, we can download some “tar” format files in our local system using the URL of a specific file within the wget instruction. The wget command utility can be utilized with several options, but we can also use it without those options to download some files. The output of this instruction displays the syntax of using the wget command on the console, some of its startup options, and most of all, the important options to use for downloading the files from the server. We use the help instruction to get help about the wget utility usage. The help instruction is mainly used in Linux to find out the information regarding the specific utility. The installed version is displayed at the first line of the console output along with some of its related information as displayed in the following: Now, after the installation of the wget utility, you need to find out that it’s just the installed version using the version query preceded by the “wget” keyword. Since it is already installed at our end, it doesn’t take much time. You must add your password and press the Enter button to continue its installation. The use of this instruction might ask you for the password of your currently logged-in user. For this, you must use the “apt” package utility of Ubuntu 20.04 Linux operating system within the installation query to install the wget using the keyword “wget” followed by the option “-y” to forcefully install it without any further prompt. If you find out that the wget package is not yet installed at your end using the “dpkg” command, you will have to install it. As you can see from the output, our system has the 1.20.3 version of wget configured already. The execution of this instruction displays the installed version of the wget utility on your console screen. For this, you can try the “dpkg” command along with the “-l” option followed by the “grep” utility with the keyword “wget”. We start the use of the wget instruction by checking if it is already installed in our Linux system or not. Our console application is quickly launched. Check the Installed Version of Wget Utilityįor this, we try to open the terminal by the use of “Ctrl+Alt+T” which is a quick and most-used way to launch the Ubuntu’s console application. Within this guide, we will discuss about the installation and usage of the wget command in the console of the Ubuntu 20.04 Linux operating system to download the files. It is very useful and comes in handy when you need to get or transfer the information on the web without logging in continuously, i.e. The wget command-line utility is free of cost and is said to be consumed to download some specific files from any server even if the user has not been logged in from the system. One of those utilities is the wget command utility utilized as a non-shared network downloader. These utilities are mostly some specific instructions that are used to download, install, and perform a different operation for a specific Linux user. You may have heard or used many command-line utilities in Linux while working. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |