在linux命令行下如何访问网址

1. wget 

Ubuntu系统自带,会将访问的首页下载到本地

admin@iZj6c9c6vaqj1i0a9j7h78Z:~$ wget www.baidu.com
--2019-04-20 17:37:29--  http://www.baidu.com/
Resolving www.baidu.com (www.baidu.com)... 103.235.46.39
Connecting to www.baidu.com (www.baidu.com)|103.235.46.39|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2381 (2.3K) [text/html]
Saving to: ‘index.html’

index.html          100%[==================>]   2.33K  --.-KB/s    in 0s  

2. crul

Ubuntu系统自带,会显示出源码

3. elinks

需要下载 sudo apt-get install elinks

elinks --dump http://www.baidu.com

4. lynx 

需要安装,方法同上

lynx http://www.baidu.com

5. w3m

需要安装,方法同上,相对而言是最好用的(我觉得)

据说再安装w3m-img可以支持图片...

 

 

参考链接:

 1. https://blog.csdn.net/zhuying_linux/article/details/6881728

 2. http://www.phpernote.com/linux/1232.html

 

转载于:https://www.cnblogs.com/lfri/p/10741986.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值