How can I make Unix-based web browsers access a particular URL by default?

In Unix, you can add a line to the .cshrc, .profile, or .bash_profile initialization file located in your home directory, to redefine the WWW_HOME environment variable. This variable is honored by most web browsers.

If you use the sh or ksh shells, add the line below to your .profile file, but if you use the bash shell add the line to your .bash_profile:

 export WWW_HOME=http://machine.address/~someuser/home.html 

For tcsh and csh shells, add the following to your .cshrc file:

 setenv WWW_HOME http://machine.address/~someuser/home.html 

Replace http://machine.address/~someuser/home.html with your preferred URL. For example, if you are a bash shell user with the username dvader and you would like the browser to point to your own home page located on Pages (pages.iu.edu), you would add the following line to your .bash_profile file:

 export WWW_HOME=http://pages.iu.edu/~dvader/home.html

At Indiana University, for personal or departmental Linux or Unix systems support, see At IU, how do I get support for Linux or Unix?

This is document begc in the Knowledge Base.
Last modified on 2017-05-16 11:52:41.

Contact us

For help or to comment, email the UITS Support Center.