TranslateProject/published/201404/5 Command Line Tools for Downloading Files/Torrents and Browsing Websites.md
wxy 97bd3352b5 renamed: 10 Useful Random Linux Interview Questions and Answers_t.md -> 201404/10 Useful Random Linux Interview Questions and Answers_t.md
renamed:    10 ssh options for a Secure shell for Safe Data Communication.md -> 201404/10 ssh options for a Secure shell for Safe Data Communication.md
	renamed:    20 Funny Commands of Linux or Linux is Fun in Terminal.md -> 201404/20 Funny Commands of Linux or Linux is Fun in Terminal.md
	renamed:    2048 Now Available For Offline Play In Ubuntu.md -> 201404/2048 Now Available For Offline Play In Ubuntu.md
	renamed:    "5 Command Line Tools for Downloading Files\357\274\217Torrents and Browsing Websites.md" -> "201404/5 Command Line Tools for Downloading Files\357\274\217Torrents and Browsing Websites.md"
	renamed:    5 Linux Distributions that Deserve more Love.md -> 201404/5 Linux Distributions that Deserve more Love.md
	renamed:    A Beginners Guide for XP Users to Switch to Linux.md -> 201404/A Beginners Guide for XP Users to Switch to Linux.md
	renamed:    Beautiful Zukitwo Theme Is the First One for GNOME 3.12.md -> 201404/Beautiful Zukitwo Theme Is the First One for GNOME 3.12.md
	renamed:    Because You Can--Windows 8 GTK Theme For Linux.md -> 201404/Because You Can--Windows 8 GTK Theme For Linux.md
	renamed:    Collectl is a powerful tool to monitor system resources on Linux.md -> 201404/Collectl is a powerful tool to monitor system resources on Linux.md
	renamed:    "Daily Ubuntu Tips \342\200\223 Fix Black Screen In Ubuntu Guest With VirtualBox Screen Capture.md" -> "201404/Daily Ubuntu Tips \342\200\223 Fix Black Screen In Ubuntu Guest With VirtualBox Screen Capture.md"
	renamed:    "Daily Ubuntu Tips \342\200\223 HPLIP 3.14.3 Released \342\200\223 Upgrade In Ubuntu.md" -> "201404/Daily Ubuntu Tips \342\200\223 HPLIP 3.14.3 Released \342\200\223 Upgrade In Ubuntu.md"
	renamed:    Easily Switch Audio Sources With Sound Switcher Indicator In Ubuntu.md -> 201404/Easily Switch Audio Sources With Sound Switcher Indicator In Ubuntu.md
	renamed:    GitHub's New Atom Text Editor Is Open Source, Sort Of, Though Not Really.md -> 201404/GitHub's New Atom Text Editor Is Open Source, Sort Of, Though Not Really.md
	renamed:    Here Are Top 20 Linux Tutorials!.md -> 201404/Here Are Top 20 Linux Tutorials!.md
	renamed:    How To Find IP Conflicts In Linux.md -> 201404/How To Find IP Conflicts In Linux.md
	renamed:    How to Wipe Free Disk Space in Linux.md -> 201404/How to Wipe Free Disk Space in Linux.md
	renamed:    How to enable 32-bit support for 64-bit Ubuntu 13.10 or greater.md -> 201404/How to enable 32-bit support for 64-bit Ubuntu 13.10 or greater.md
	renamed:    How to set up RainLoop webmail in Ubuntu server.md -> 201404/How to set up RainLoop webmail in Ubuntu server.md
	renamed:    How to spoof the MAC address of a network interface on Linux.md -> 201404/How to spoof the MAC address of a network interface on Linux.md
	renamed:    Interesting facts about Raspberry Pi.md -> 201404/Interesting facts about Raspberry Pi.md
	renamed:    Linux 3.15 Will Dramatically Reduce Suspend And Resume Times!.md -> 201404/Linux 3.15 Will Dramatically Reduce Suspend And Resume Times!.md
	renamed:    Linux Basics--Analyze Disk Usage In Ubuntu Linux.md -> 201404/Linux Basics--Analyze Disk Usage In Ubuntu Linux.md
	renamed:    Linux Commands Cheat Sheet in Black & White.md -> 201404/Linux Commands Cheat Sheet in Black & White.md
	renamed:    Linux Kernel News - January and February 2014.md -> 201404/Linux Kernel News - January and February 2014.md
	renamed:    Linux and Unix nload App - Monitor Network Traffic and Bandwidth Usage In Real Time.md -> 201404/Linux and Unix nload App - Monitor Network Traffic and Bandwidth Usage In Real Time.md
	renamed:    Meet uGet, an Amazing Download Manager for Linux.md -> 201404/Meet uGet, an Amazing Download Manager for Linux.md
	renamed:    Moving a city to Linux requires political backing, says Munich project leader.md -> 201404/Moving a city to Linux requires political backing, says Munich project leader.md
	renamed:    Open Source Isn't Just For Developers Anymore.md -> 201404/Open Source Isn't Just For Developers Anymore.md
	renamed:    Play the Best Linux Puzzle Games.md -> 201404/Play the Best Linux Puzzle Games.md
	renamed:    Red Hat Updates Open Source Software Development Tools.md -> 201404/Red Hat Updates Open Source Software Development Tools.md
	renamed:    Ubuntu Touch Email Client Mockup Design Looks Fantastic.md -> 201404/Ubuntu Touch Email Client Mockup Design Looks Fantastic.md
	renamed:    Ultimate Edition 3.9 Linux Distro Is a Complete Mess.md -> 201404/Ultimate Edition 3.9 Linux Distro Is a Complete Mess.md
	renamed:    What if Linus Torvalds Would Have Accepted Job Proposal of Steve Jobs.md -> 201404/What if Linus Torvalds Would Have Accepted Job Proposal of Steve Jobs.md
	renamed:    What is good video editing software on Linux.md -> 201404/What is good video editing software on Linux.md
	renamed:    Windows 7 & 8 Complete Transformation Pack Out for Ubuntu, Debian 8, and Arch Linux.md -> 201404/Windows 7 & 8 Complete Transformation Pack Out for Ubuntu, Debian 8, and Arch Linux.md
	renamed:    nSnake--Play The Classic Snake Game In Linux Terminal.md -> 201404/nSnake--Play The Classic Snake Game In Linux Terminal.md
2014-05-01 06:53:52 +08:00

135 lines
5.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

在终端上访问网站和下载文件
================================================================================
Linux 命令行工具很牛逼Linux 命令行以及一些第三方应用让 Linux 变得更牛逼。Linux 命令行工具可以用于下载种子和文件,可以上网冲浪。
![5 Command Line Internet Tools](http://www.tecmint.com/wp-content/uploads/2014/02/Command-Line-Internet-Tools.jpg)
本文推荐的**5个强悍的上网工具**方便实用,是居家旅行的必备物品。
### 1. rTorrent ###
rTorrent 基于文本的 Torrent 客户端,用 C++ 调制而成,我们的目标是高性能!我们可运行在标准的 Linux 发行版中,包括 FreeBSD 和 Mac OS X。
#### 安装 rTorrent ####
# apt-get install rtorrent (基于 APT 的系统,如 DebianUbuntu)
# yum install rtorrent (基于 YUM 的系统,如 RHELFedora)
检查有没有安装成功,运行下面命令试试:
# rtorrent
![rTorrent Command Line Tool](http://www.tecmint.com/wp-content/uploads/2014/02/rTorrent.jpeg)
#### rTorrent 的用法 ####
下面是 rTorrent 比较常用的功能:
- **CTRL+ q** 退出 rTorrent。
- **CTRL+ s** 开始下载。
- **CTRL+ d** 暂停下载任务,或删除己被暂停的下载任务。
- **CTRL+ k** 关闭一个正在下载的任务
- **CTRL+ r** 在开始上传、下载之前,使用 Hash 检查文件,确保文件的完整性。
- **CTRL+ q** 按再次这个组合键rTorrent 无条件退出。
- **Left Arrow Key** 回退到上个页面。
- **Right Arrow Key** 前进到下个页面。
### 2. Wget ###
**Wget** 是一个 GNU 项目,它的名称参考了 World Wide Web (**WWW**)。Wget 在递归下载方面做得很好,你可以将整个网站的内容都下到本地,然后访问本地的 **HTML** 文件。它支持多种操作系统:**WindowsMacLinux**。它支持多种协议,可通过 **HTTPHTTPS 和 FTP** 下载文件。它可以对整个网站做一个镜像(完全将目标网站的文件下载到本机),支持代理,支持断点传输(即下载可暂停)。
#### 安装 Wget ####
**Wget** 也是一个 GNU 项目,在标准 Linux 发行版中都有内置,就是说你不用下载安装它就可以使用了。万一,它没有被默认安装,你也可以通过 **APT****YUM** 安装。
# apt-get install wget (基于 APT 的系统,如 DebianUbuntu)
# yum install wget (基于 YUM 的系统,如 RHELFedora)
#### Wget 的用法 ####
下载一个文件:
# wget http://www.website-name.com/file
下载整个网站:
# wget -r http://www.website-name.com
下载指定类型的文件(比如 PDF 和 PNG
# wget -r -A png,pdf http://www.website-name.com
下面是一张 Wget 的截图,我们正在把 **Yahoo.com** 网站整个都镜像下来。
![Wget Command Line File Download](http://www.tecmint.com/wp-content/uploads/2014/02/Wget.jpeg)
关于 wget 的更多用法,参考[Wget 的10个的用法][1]。
### 3. cURL ###
**cURL** 是一个客户端工具,支持多种文件传输协议,比如 **FTP, HTTP, FTPS, TFTP, TELNET, IMAP, POP3** 等等。不像 wget 等工具cURL 只是一个单纯的下载器,支持 **LDAP, POP3**,支持代理下载,支持断点续传。
#### 安装 cURL ####
大多数发行版都默认安装了 cURL如果没有可通过 **apt****yum** 下载:
# apt-get install curl (基于 APT 的系统,如 DebianUbuntu)
# yum install curl (基于 YUM 的系统,如 RHELFedora)
#### cURL 基本用法 ####
# curl www.tecmint.com
![Curl Data Download](http://www.tecmint.com/wp-content/uploads/2014/02/Curl.jpeg)
![Curl Download](http://www.tecmint.com/wp-content/uploads/2014/02/Curl-2.jpeg)
### 4. w3m ###
W3m 是基于文本的网页浏览器,使用 GPL 协议,支持 tables, frames, color, SSL 连接,支持内嵌图片,以快速闻名。
#### 安装 w3m ####
W3m 也是大多数发行版的默认配置,也可通过 **apt****yum** 安装。
# apt-get install w3m (基于 APT 的系统,如 DebianUbuntu)
# yum install w3m (基于 YUM 的系统,如 RHELFedora)
#### w3m 的基本用法 ####
# w3m www.tecmint.com
![w3m Text Based Web Browser](http://www.tecmint.com/wp-content/uploads/2014/02/w3m.jpeg)
### 5. Elinks ###
**Elinks** 是一个免费的基于本文的网页浏览器,支持 **HTTP**,支持 **HTTP Cookie**,支持 **Perl****Ruby** 写的脚本,支持网页标签,支持鼠标,可彩色显示页面,支持 **HTTP, FTPSMBIPv4IPv6**
#### 安装 Elinks ####
大多数发行版已经默认安装了 Elinks如果没有通过 **apt****yum** 安装。
# apt-get install elinks (基于 APT 的系统,如 DebianUbuntu)
# yum install elinks (基于 YUM 的系统,如 RHELFedora)
#### Elinks的基本用法 ####
elinks www.tecmint.com
![Elinks Command Line Web Browsing](http://www.tecmint.com/wp-content/uploads/2014/02/Elinks.jpeg)
--------------------------------------------------------------------------------
via: http://www.tecmint.com/command-line-tools-for-downloading-file-and-browsing-websites/
译者:[bazz2](https://github.com/bazz2) 校对:[wxy](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://www.tecmint.com/10-wget-command-examples-in-linux/