Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I keep typing as into chromium's address bar and hitting return, thinking it would take me to

Is there a way for me to alias it to, so I stop wasting time closing the tab, opening a new one and typing in before hitting enter?

share|improve this question
up vote 3 down vote accepted

Alternatively there is a Bookmark Keyword extension, that provides a similar functionality.

After installing, add a bookmark to with the title [as] Ask Ubuntu.

Now it is possible to use the keyword between the square brackets to invoke the bookmark in the address bar. The detailed process is documented on the extension's web page.

As an example, to invoke you have to type:


(It requires 2 extra key presses, but I think it is a good tradeoff between maintenance and usability. And for an added bonus there are commands that can be appended to keywords to modify the opening process. Eg.: as:t will open the page on a new tab.)

share|improve this answer

In Chromium, go to chrome://settings/browser (this is the same as Wrench icon -> Preferences) . In Search, click on "Manage Search Engines". Add a new search engine, with details as follows:

share|improve this answer
I think the URL would be better as – Steve Bosman Nov 5 '11 at 15:31
That would not solve the problem. The requirement is that entering 'as' and pressing Enter should go to . If the URL is , that does not happen, instead entering 'as' and pressing Enter does a Google search. – Prateek Nov 5 '11 at 15:54

If you want this to take effect to the whole of your computer, you need to edit the /etc/hosts file alias for that: as #

To edit the file, type in gksu gedit /etc/hosts in the terminal

share|improve this answer
And so where is this hosts file? – jonallard Nov 5 '11 at 13:01
That IP takes you to stackoverflow. :P – James Nov 5 '11 at 13:01
@jonallard, the hosts file is in the etc folder of the file system. You need to tick Show Hidden Files in the File Manager (Nautilus) View Menu in order to see it. You need to open the file with the command gksudo gedit /etc/hosts in order to edit the hosts file. – grahammechanical Nov 5 '11 at 13:18
That won't work, because your browser would then send a request for Host as instead of Host The web server is likely to not respond, send a 404, or (what happens here) return data for a different website hosted on the same machine. – Gilles Nov 5 '11 at 18:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.