In this guide we will learn how to open websites using the Ubuntu Terminal. We will also see how to navigate web pages inside the terminal without using a standard web browser. The commands are tested under Ubuntu 11.10 and are workable for older versions of Ubuntu, or even other Linux-based distributions.
You can use the "gnome-open" command line utility to open URLs directly from the command line. You need first to install this dependency if you are under Ubuntu 11.10:
sudo apt-get install libgnome2-0
Then use this command to access websites from the terminal:
Repolace URL with any link of your choice. Here is an example:
The entered link will be opened in the current default web browser (Firefox).
If you are installing multiple web browsers and want to open a link in one of them, then use one of these commands:
- Google Chrome:
To install "links" on Ubuntu, run this command:
sudo apt-get install links
Then use this command to navigate websites inside the terminal: