David
David

Reputation: 2721

how to display the html codes of a webpage specified by a URL using shell in Ubuntu?

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

Answers (2)

cdhowie
cdhowie

Reputation: 169478

To supplement Stephen's answer, wget can do this too:

wget -q -O - http://example.com

Upvotes: 1

Stephen
Stephen

Reputation: 3432

You can use cURL:

curl http://whatever.com

You may need to install curl tho -

apt-get install curl

Upvotes: 1

Related Questions