Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  5] [ 0]  / answers: 1 / hits: 17651  / 1 Year ago, sat, december 31, 2022, 3:17:53

I am running Ubuntu Desktop 12.04 and would like to be able to open a web browser (Firefox), type an alias into the address bar, hit enter, and have the browser take me to the site that the alias references. For instance, I'd like to be able to type in "so" and have it take me to http:www.stackoverflow.com, etc.



I realize this is what "Favorties" or "Bookmarks" already do, however, this is like the text-only, command-line version of those tools.



I suspect I have to configure something equivalent to a Windows HOST file, but since I'm so new to Linux/Ubuntu, I don't know what that equivalent is, or if this is even possible to do. Thanks in advance!


More From » 12.04

 Answers
4

If you did this with the hosts file, you would have to use the IP address of the websites in question, which would probably be a bad idea. IP addresses change, aand most larger sites use several different IPs in a round-robin/load-balancing configuration. At any rate, to do that, just edit the /etc/hosts file, and add lines similar to this:



# alias for stackoverflow.com
64.34.119.12 so


That first line is just a comment, so you know what it's doing there later.



If you just want to have aliases for Firefox, there is an add-on called URL Alias. Just search for it in the add-ons for Firefox. The Alias Links extension in Chrome will do the same thing.


[#35404] Sunday, January 1, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ditery

Total Points: 9
Total Questions: 116
Total Answers: 119

Location: Grenada
Member since Sun, Dec 20, 2020
3 Years ago
;