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.

  • Fill out this form to submit your issue to the UITS Support Center.
  • Please note that you must be affiliated with Indiana University to receive support.
  • All fields are required.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

  • Fill out this form to submit your comment to the IU Knowledge Base.
  • If you are affiliated with Indiana University and need help with a computing problem, please use the I need help with a computing problem section above, or contact your campus Support Center.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.