mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-25 23:11:02 +08:00
[Translated]tech/20150407 5 Linux Command Line Based Tools for Downloading Files and Browsing Websites
This commit is contained in:
parent
01b56af9f8
commit
fd998cd2f0
@ -1,157 +0,0 @@
|
||||
Translating by ictlyh
|
||||
5 Linux Command Line Based Tools for Downloading Files and Browsing Websites
|
||||
================================================================================
|
||||
Linux command-line, the most adventurous and fascinating part of GNU/Linux is very cool and powerful tool. Command line itself is very productive and the availability of various inbuilt and third party command line application makes Linux robust and powerful. The Linux Shell supports a variety of web application of various kind be it torrent downloader, dedicated downloader or Internet Surfing.
|
||||
|
||||
![Command Line Internet Tools](http://www.tecmint.com/wp-content/uploads/2014/02/Command-Line-Internet-Tools.jpg)
|
||||
5 Command Line Internet Tools
|
||||
|
||||
Here we are presenting 5 great command line Internet tools, which are very useful and proves to be very handy.
|
||||
|
||||
### 1. rTorrent ###
|
||||
|
||||
rTorrent is a text-based Torrent Client which is written in C++ aimed at high performance. It is available for most of the standard Linux Distributions including FreeBSD and Mac OS X.
|
||||
|
||||
#### Installation of rTorrent ####
|
||||
|
||||
# apt-get install rtorrent (on APT based System)
|
||||
|
||||
----------
|
||||
|
||||
# yum install rtorrent (on YUM based System)
|
||||
|
||||
Check if rtorrent is installed correctly by running the following command in the terminal.
|
||||
|
||||
# rtorrent
|
||||
|
||||
![Command line torrent download](http://www.tecmint.com/wp-content/uploads/2014/02/rTorrent.jpeg)
|
||||
rTorrent Command Line Tool
|
||||
|
||||
#### Functioning of rTorrent ####
|
||||
|
||||
Some of the useful Key-bindings and their use.
|
||||
|
||||
- CTRL+ q – Quit rTorrent Application
|
||||
- CTRL+ s – Start Download
|
||||
- CTRL+ d – Stop an active Download or Remove an already stopped Download.
|
||||
- CTRL+ k – Stop and Close an active Download.
|
||||
- CTRL+ r – Hash Check a torrent before Upload/Download Begins.
|
||||
- CTRL+ q – When this key combination is executed twice, rTorrent shutdown without sending a stop Signal.
|
||||
- Left Arrow Key – Redirect to Previous screen.
|
||||
- Right Arrow Key – Redirect to Next Screen
|
||||
|
||||
### 2. Wget ###
|
||||
|
||||
Wget, is a part of GNU Project, the name is derived from World Wide Web (WWW). Wget is a brilliant tool which is useful for recursive download, offline viewing of HTML from local Server and is available for most of the platforms be it Windows, Mac, Linux. Wget makes it possible to download files over HTTP, HTTPS and FTP. Moreover it can be useful in mirroring the whole website as well as support for proxy browsing, pausing/resuming Downloads.
|
||||
|
||||
#### Installation of Wget ####
|
||||
|
||||
Wget being a GNU project comes bundled with Most of the Standard Linux Distributions and there is no need to download and install it separately. If in-case, it’s not installed by default, you can still install it using apt or yum.
|
||||
|
||||
# apt-get install wget (on APT based System)
|
||||
|
||||
----------
|
||||
|
||||
# yum install wget (on YUM based System)
|
||||
|
||||
#### Some Basic Usage of Wget ####
|
||||
|
||||
Download a single file using wget.
|
||||
|
||||
# wget http://www.website-name.com/file
|
||||
|
||||
Download a whole website, recursively.
|
||||
|
||||
# wget -r http://www.website-name.com
|
||||
|
||||
Download specific type of file (say pdf and png) from a website.
|
||||
|
||||
# wget -r -A png,pdf http://www.website-name.com
|
||||
|
||||
Wget is a wonderful tool which enables custom and filtered download even on limited resource Machine. A screen shot of wget download, where we are mirroring a website (Yahoo.com).
|
||||
|
||||
![Wget Download Files](http://www.tecmint.com/wp-content/uploads/2014/02/Wget.jpeg)
|
||||
Wget Command Line File Download
|
||||
|
||||
For more such wget download examples, read our article that shows [10 Wget Download Command Examples][1].
|
||||
|
||||
### 3. cURL ###
|
||||
|
||||
cURL is a command line tool for transferring data over a number of protocols. cURL is a client side application which support protocols like FTP, HTTP, FTPS, TFTP, TELNET, IMAP, POP3, etc. cURL is a simple downloader which is different from wget in supporting LDAP, POP3 as compared to others. Moreover Proxy Downloading, pausing download, resuming download are well supported in cURL.
|
||||
|
||||
#### Installation of cURL ####
|
||||
|
||||
By default cURL is available in most of the distribution either in repository or installed. if it’s not installed, just do a apt or yum to get a required package from the repository.
|
||||
|
||||
# apt-get install curl (on APT based System)
|
||||
|
||||
----------
|
||||
|
||||
# yum install curl (on YUM based System)
|
||||
|
||||
Basic Usage of cURL
|
||||
|
||||
# curl www.tecmint.com
|
||||
|
||||
![Curl Download](http://www.tecmint.com/wp-content/uploads/2014/02/Curl.jpeg)
|
||||
Curl Data Download
|
||||
|
||||
![Curl Data Download](http://www.tecmint.com/wp-content/uploads/2014/02/Curl-2.jpeg)
|
||||
Curl Download
|
||||
|
||||
### 4. w3m ###
|
||||
|
||||
The w3m is a text based web browser released under GPL. W3m support tables, frames, color, SSL connection and inline images. W3m is known for fast browsing.
|
||||
|
||||
#### Installation of w3m ####
|
||||
|
||||
Again w3m is available by default in most of the Linux Distribution. If incase, it is not available you can always apt or yum the required package.
|
||||
|
||||
# apt-get install w3m (on APT based System)
|
||||
|
||||
----------
|
||||
|
||||
# yum install w3m (on YUM based System)
|
||||
|
||||
#### Basic Usage of w3m ####
|
||||
|
||||
# w3m www.tecmint.com
|
||||
|
||||
![Command Line Browser](http://www.tecmint.com/wp-content/uploads/2014/02/w3m.jpeg)
|
||||
w3m Text Based Web Browser
|
||||
|
||||
### 5. Elinks ###
|
||||
|
||||
Elinks is a free text-based web browser for Unix and Unix based System. Elinks support HTTP, HTTP Cookies and also support browsing script in Perl and Ruby. Tab based browsing is well supported. The best thing is that it supports Mouse, Display Colours and support a number of Protocols like HTTP, FTP, SMB, Ipv4 and Ipv6.
|
||||
|
||||
#### Installation of Elinks ####
|
||||
|
||||
By default elinks also available in most of the Linux distributions. If not, install it via apt or yum.
|
||||
|
||||
# apt-get install elinks (on APT based System)
|
||||
|
||||
----------
|
||||
|
||||
# yum install elinks (on YUM based System)
|
||||
|
||||
Basic Usage of Elinks
|
||||
|
||||
# elinks www.tecmint.com
|
||||
|
||||
![Command Line Internet Browsing](http://www.tecmint.com/wp-content/uploads/2014/02/Elinks.jpeg)
|
||||
Elinks Command Line Web Browsing
|
||||
|
||||
That’s all for now. I’ll be here again with an interesting article which you people will love to read. Till then stay tuned and connected to Tecmint and don’t forget to give your valuable feedback in comment section.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.tecmint.com/linux-command-line-tools-for-downloading-files/
|
||||
|
||||
作者:[Avishek Kumar][a]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:http://www.tecmint.com/author/avishek/
|
||||
[1]:http://www.tecmint.com/10-wget-command-examples-in-linux/
|
@ -0,0 +1,156 @@
|
||||
5个基于Linux命令行的文件下载和网站浏览工具
|
||||
================================================================================
|
||||
GNU/Linux最冒险迷人的部分,Linux命令行,是非常强大的工具。命令行本身功能多样,多种内建或者第三方的命令行应用使得Linux变得更加健壮和强大。Linux Shell支持多种不同类型的网络应用,无论是BT下载软件,专用下载器或者互联网冲浪。
|
||||
|
||||
![命令行互联网工具](http://www.tecmint.com/wp-content/uploads/2014/02/Command-Line-Internet-Tools.jpg)
|
||||
5个命令行互联网工具
|
||||
|
||||
这里我们介绍了5个很好的命令行互联网工具,它们非常有用,也很容易上手。
|
||||
|
||||
### 1. rTorrent ###
|
||||
|
||||
rTorrent是基于文本,用C++编写,追求高性能的Torrent客户端。支持大部分标准的Linux发行版,包括FreeBSD和Mac OS X。
|
||||
|
||||
#### 安装rTorrent ####
|
||||
|
||||
# apt-get install rtorrent (基于 APT 的系统)
|
||||
|
||||
----------
|
||||
|
||||
# yum install rtorrent (基于 YUM 的系统)
|
||||
|
||||
在终端中用下面的命令检查rtorrent是否正确安装
|
||||
|
||||
# rtorrent
|
||||
|
||||
![命令行torrent下载器](http://www.tecmint.com/wp-content/uploads/2014/02/rTorrent.jpeg)
|
||||
rTorrent命令行工具
|
||||
|
||||
#### rTorrent的功能 ####
|
||||
|
||||
一些有用的快捷键和使用方法
|
||||
|
||||
- CTRL+ q – 退出rTorrent应用程序
|
||||
- CTRL+ s – 开始下载
|
||||
- CTRL+ d – 停止运行中的下载或者移除已完成的下载
|
||||
- CTRL+ k – 停止并关闭运行中的下载
|
||||
- CTRL+ r – 在上传/下载torrent之前进行Hash检查
|
||||
- CTRL+ q – 执行两次这个命令,rTorrent会直接退出而不发送停止信号
|
||||
- Left Arrow Key – 跳到上一屏幕
|
||||
- Right Arrow Key – 跳到下一屏幕
|
||||
|
||||
### 2. Wget ###
|
||||
|
||||
Wget是GNU项目的一部分,名字由World Wide Web (WWW)衍生而来。Wget是用来递归下载,离线查看本地服务器HTML文件一个很好的工具,它可用于Windows, Max,以及Linux等大部分平台。Wget能通过HTTP,HTTPS和FTP下载文件。另外,能镜像整个网站,支持代理浏览以及暂停/回复下载使得它更为有用。
|
||||
|
||||
#### 安装Wget ####
|
||||
|
||||
由于是GNE项目的一部分,Wget在大部分标准Linux发行版中都绑定发布,不再需要独立下载安装。如果默认没有安装,你也可以使用apt或者yum安装。
|
||||
|
||||
# apt-get install wget (基于 APT 的系统)
|
||||
|
||||
----------
|
||||
|
||||
# yum install wget (基于 YUM 的系统)
|
||||
|
||||
#### Wget的一些基本用法 ####
|
||||
|
||||
使用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下载截图。
|
||||
|
||||
![Wget 下载文件](http://www.tecmint.com/wp-content/uploads/2014/02/Wget.jpeg)
|
||||
Wget 命令行文件下载
|
||||
|
||||
要获取更多wget下载的例子,可以阅读我们的文章[10个Wget下载命令例子][1]。
|
||||
|
||||
### 3. cURL ###
|
||||
|
||||
cURL是在多种协议上传输数据的命令行工具。cURL是支持FTP, HTTP, FTPS, TFTP, TELNET, IMAP, POP3等协议的客户端应用。和其它相对比,在支持LDAP,POP3方面,cURL是和wget不同的简单下载器。cURL也很好的支持代理下载,暂停下载以及恢复下载。
|
||||
|
||||
#### 安装cURL ####
|
||||
|
||||
在软件仓库或者已安装软件中,cURL在大部分发行版中默认是可用的。如果没有安装,运行apt或者yum从软件仓库中获取需要的安装包。
|
||||
|
||||
# apt-get install curl (基于 APT 的系统)
|
||||
|
||||
----------
|
||||
|
||||
# yum install curl (基于 YUM 的系统)
|
||||
|
||||
cURL的基本使用方法
|
||||
|
||||
# curl www.tecmint.com
|
||||
|
||||
![Curl 下载](http://www.tecmint.com/wp-content/uploads/2014/02/Curl.jpeg)
|
||||
Curl 下载数据
|
||||
|
||||
![Curl 下载数据](http://www.tecmint.com/wp-content/uploads/2014/02/Curl-2.jpeg)
|
||||
Curl 下载
|
||||
|
||||
### 4. w3m ###
|
||||
|
||||
W3m是GPL协议下发布的基于文本的web浏览器。W3m支持表格,帧,颜色,SSL连接以及内联图像。W3m由于快速浏览而出名。
|
||||
|
||||
#### 安装w3m ####
|
||||
|
||||
W3m在大部分Linux发行版中也是默认可用的。如果不可用的话可以用apt或者yum获取需要的安装包。
|
||||
|
||||
# apt-get install w3m (基于 APT 的系统)
|
||||
|
||||
----------
|
||||
|
||||
# yum install w3m (基于 YUM 的系统)
|
||||
|
||||
#### w3m的基本使用方法 ####
|
||||
|
||||
# w3m www.tecmint.com
|
||||
|
||||
![命令行浏览器](http://www.tecmint.com/wp-content/uploads/2014/02/w3m.jpeg)
|
||||
基于文本的web浏览器w3m
|
||||
|
||||
### 5. Elinks ###
|
||||
|
||||
Elinks是基于文本,给基于Unix和基于Unix的系统使用的免费web浏览器。Elinks支持 HTTP,HTTP Cookies以及支持浏览Pery和Ruby脚本。也很好的支持基于标签的浏览。最棒的是它支持鼠标,颜色显示以及支持一系列的协议,例如HTTP, FTP, SMB, Ipv4 和 Ipv6。
|
||||
|
||||
#### 安装Elinks ####
|
||||
|
||||
Elinks在大部分Linux发行版上是默认可用的。如果不是的话,可以通过apt或者yum安装。
|
||||
|
||||
# apt-get install elinks (基于 APT 的系统)
|
||||
|
||||
----------
|
||||
|
||||
# yum install elinks (基于 YUM 的系统)
|
||||
|
||||
Elinks的基本使用方法
|
||||
|
||||
# elinks www.tecmint.com
|
||||
|
||||
![命令行互联网浏览](http://www.tecmint.com/wp-content/uploads/2014/02/Elinks.jpeg)
|
||||
Elinks命令行浏览互联网
|
||||
|
||||
就是这些了。有你们喜欢读的有趣的文章,我会再次来到这里。到那时尽请关注并保持和Tecmint的联系,别忘了在评论部分给我们你的宝贵的反馈。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: http://www.tecmint.com/linux-command-line-tools-for-downloading-files/
|
||||
|
||||
作者:[Avishek Kumar][a]
|
||||
译者:[ictlyh](https://github.com/ictlyh)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:http://www.tecmint.com/author/avishek/
|
||||
[1]:http://www.tecmint.com/10-wget-command-examples-in-linux/
|
Loading…
Reference in New Issue
Block a user