Alternatively, if we are looking for a specific Linux. The search results for the Linux container will be listed below.
The following information also provided with the search results. In this example, we will select the Ubuntu image with the latest version. Ubuntu During the download, the download status will be shown in the header like below. We can see that the Ubuntu image is about MB and downloaded very fast. When the download is complete we can launch Ubuntu container from the Microsoft Store from the Launch button like below.
We will see the following bash shell where it is initialized for the first run. As it says it may take a few minutes to see the shell. Before starting to use bash we will be asked some basic questions like the username and password which will set.
In this example, we set the username ismail. The password is not shown for security reasons. This can be done by inputting the following command into the terminal:. Let us show an example to further clarify this. We will be downloading a simple image in the png format from the internet.
See the image below for better understanding:. Wget also allows users to download multiple files from different URLs.
This can easily be done by the following command:. Once again, we can show this using an example. We will be downloading two HTML files from two different websites. For better understanding, please look at the image below:.
Here filename refers to the name that you want to address the file as. Using this, we can also change the type of the file. This is shown in the image below:. Wget also allows users to recursively download their files which is basically downloading all the files from the website under a single directory. For more information regarding Wget, users can input the following command into the terminal to get access to all the Wget commands that appear to be available:.
Curl is another command line tool that can be used to download files from the internet. Unlike Wget, which is command line only, features of Curl are powered by libcurl which is a cross-platform URL transfer library.
Curl not only allows downloading of files but can also be used for uploading and exchanging of requests with servers. However, Curl does not support recursive downloads which Wget offers. Linux Basics. Linux Directories. Linux pwd. Linux cd. Linux grep. Linux Path Completion. Linux - Using Variables.
0コメント