In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article is about downloading files from the Linux command line. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.
Wget is a Linux command line utility that is widely used to download files from the Linux command line, and there are many options for downloading files from a remote server. Wget is the same as open url in the browser window.
1: download files using Wget
The following example downloads the file from the server to the current local directory.
$wget https://tecadmin.net/file.zip
2: download the file and save it to a specific location
The following command downloads the zip file in the / opt folder named file.zip. -O used to specify the destination folder
# wget https://tecadmin.net/file.zip-O / opt/file.zip
3: download files from FTP
Sometimes you need to download files from a ftp server, so wget can easily download files from ftp url, as shown below.
# wget ftp://ftp.tecadmin.net/file.zip
4: download files from password-protected URL
Sometimes we need to specify a user name and password to download the file. Although it is easy to use the browser but use the command line, it does not prompt for login credentials. The following example shows how to use a user name and password when downloading a file from a password-protected source.
Download files from a password-protected ftp server.
$wget-- ftp-user=username-- ftp-password=secretpassword ftp://ftp.tecadmin.net/file.zipor$ wget ftp://username:secretpassword@ftp.tecadmin.net/file.zip
Download files from a password-protected http server.
# wget-http-user=username-http-password=secretpassword https://tecadmin.net/file.zipor# wget-user=username-password=secretpassword https://tecadmin.net/file.zip
4.3: download the file behind the password-protected proxy server.
$wget-proxy-user=username-proxy-password=secretpassword https://tecadmin.net/file.zip
5: download files from an untrusted secure URL.
If any download URL uses an untrusted ssl certificate, wget will not download the file. But we can download it in url using the-no-check-certificate parameter.
$wget https://tecadmin.net/file.zip-no-check-certificate Thank you for your reading! This is the case of downloading files on the Linux command line. I hope the above content can be helpful to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.