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=https://machine.address/~someuser/home.html
For tcsh
and csh
shells, add the following to your .cshrc
file:
setenv WWW_HOME https://machine.address/~someuser/home.html
Replace https://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=https://dvader.pages.iu.edu/home.html
At Indiana University, for personal or departmental Linux or Unix systems support, see Get help for Linux or Unix at IU.
This is document begc in the Knowledge Base.
Last modified on 2023-06-27 11:47:02.