Access the website and download files on the terminal

Source: Internet
Author: User

Linux Command Line tools are awesome. Linux Command lines and some third-party applications make Linux more awesome. The Linux Command Line tool can be used to download seeds and files and surf the Internet.

The five powerful online tools recommended in this article are convenient and practical, and are essential for home travel.

1. rTorrent

RTorrent is a text-based Torrent client developed by C ++. Our goal is high performance! We can run in standard Linux releases, including FreeBSD and Mac OS X.

Install rTorrent

 
 
  1. # Apt-get install rtorrent (APT-based systems such as Debian and Ubuntu)
  2. # Yum install rtorrent (YUM-based systems such as RHEL and Fedora)

Run the following command to check whether the installation is successful:

 
 
  1. # rtorrent 

RTorrent usage

The following are common functions of rTorrent:

  • CTRL + q-exit rTorrent.
  • CTRL + s-start download.
  • CTRL + d-pause the download task or delete the paused download task.
  • CTRL + k-close a download task
  • CTRL + r-before you start uploading and downloading files, use Hash to check file integrity.
  • CTRL + q-Press the next key combination to exit rTorrent unconditionally.
  • Left Arrow Key-roll back to the previous page.
  • Right Arrow Key-go to the next page.

2. Wget

Wget is a GNU project. Its name is referenced in World Wide Web (WWW ). Wget does a good job in recursive download. You can store the content of the entire website to a local location and then access the local HTML file. It supports multiple operating systems: Windows, Mac, and Linux. It supports multiple protocols to download files through HTTP, HTTPS, and FTP. It can make an image for the entire website to completely download the files on the target website to the local machine), support proxy, support breakpoint transmission, I .e. download can be paused ).

Install Wget

Wget is also a GNU project, which has built-in functions in the standard Linux release, that is, you do not need to download and install it. In case it is not installed by default, you can also install it through APT or YUM.

 
 
  1. # Apt-get install wget (APT-based systems, such as Debian and Ubuntu)
  2. # Yum install wget (YUM-based systems such as RHEL and Fedora)

Wget usage

Download an object:

 
 
  1. # wget http://www.website-name.com/file 

Download the entire website:

 
 
  1. # wget -r http://www.website-name.com 

Download a file of the specified type, such as PDF and PNG ):

 
 
  1. # wget -r -A png,pdf http://www.website-name.com 

Below is a Wget. We are mirroring the entire website Yahoo.com.

For more wget usage methods, refer to the 10 Wget usage.

3. cURL

CURL is a client tool that supports multiple file transfer protocols, such as FTP, HTTP, FTPS, TFTP, TELNET, IMAP, POP3, and so on. Unlike tools such as wget, cURL is a simple download tool that supports LDAP and POP3, proxy download, and resumable data transfer.

Install cURL

CURL is installed by default in most releases. If not, you can download it through apt or yum:

 

CURL basic usage

 

4. w3m

W3m is a text-based Web browser that uses the GPL protocol and supports tables, frames, color, and SSL connections. It supports embedded images and is well known for its speed.

Install w3m

W3m is also the default configuration for most releases, and can also be installed through apt or yum.

 
 
  1. # Apt-get install w3m (APT-based systems such as Debian and Ubuntu)
  2. # Yum install w3m (YUM-based systems such as RHEL and Fedora)

Basic usage of w3m

 
 
  1. # w3m www.tecmint.com 

5. Elinks

Elinks is a free web browser based on this article. It supports HTTP, HTTP cookies, Perl and Ruby scripts, webpage tags, mouse, and page color display, supports HTTP, FTP, SMB, IPv4, and IPv6.

Install Elinks

Elinks has been installed by default in most releases. If not, install Elinks through apt or yum.

 
 
  1. # Apt-get install elinks (APT-based systems such as Debian and Ubuntu)
  2. # Yum install elinks (YUM-based systems such as RHEL and Fedora)

Basic Elinks usage

 
 
  1. elinks www.tecmint.com 

Via: http://www.tecmint.com/command-line-tools-for-downloading-file-and-browsing-websites/

Translator: bazz2 Proofreader: wxy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.