Terminal Tip – How To View Html Code Of A Website From The Terminal
Hi unixmen geeks,
I like terminal tips, what about you guys? In this tutorial I will teach you how to use the get command-line utility to view html code of a website from your geeky terminal. The good thing is that you don’t need to install anything in order to accomplish what we are trying to do in this tutorial.
We will use the get utility to send a request to a www server and get the content of the response printed on stdout. If there is any error they will be printed on stderr.
1. Open a new terminal (CTRL+ALT+T in Ubuntu)
2. Run the following command.
What do you see?
Note: You can replace unixmen.com with the name of the website you want to view html code.