在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/lkj371/p/14900049.html