UNIX: Lynx Browser Set / Change the Default Home Page

The default home page for Lynx browser can be set by editing the Lynx configuration file located at ~/.lynxrc or /etc/lynx.cfg.

To set the default home page, open the configuration file in a text editor and add the following line:

homepage:http://www.example.com/

Replace http://www.example.com/ with the URL of the desired home page.

If the ~/.lynxrc file does not exist, you can create it by running the following command in a terminal:

touch ~/.lynxrc

After making changes to the configuration file, save and close it. The changes will take effect the next time you start Lynx.

Note that if you do not have permission to edit the configuration file, you can copy it to your home directory, make changes to the copy, and then specify the location of the modified configuration file using the -cfg option when starting Lynx. For example:

lynx -cfg=~/.lynxrc

Leave a Comment