Reputation: 2721
I want to display the html codes of a webpage specified by a URL using shell in Ubuntu? how could I do this?
Upvotes: 1
Views: 536
Reputation: 169478
To supplement Stephen's answer, wget
can do this too:
wget -q -O - http://example.com
Upvotes: 1
Reputation: 3432
You can use cURL:
curl http://whatever.com
You may need to install curl tho -
apt-get install curl
Upvotes: 1