如何在Ubuntu中使用shell显示URL指定网页的html代码?
我想在Ubuntu中使用shell显示URL指定的网页的html代码?我怎么能这样做呢?
I want to display the html codes of a webpage specified by a URL using shell in Ubuntu? how could I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用cURL:
您可能需要安装curl -
You can use cURL:
You may need to install curl tho -
为了补充斯蒂芬的答案,wget也可以这样做:
To supplement Stephen's answer,
wget
can do this too: