You are here

How does the DICE bash start-up mechanism work?

Printer-friendly versionPrinter-friendly version

We've modified bash slightly on DICE. If you want to personalise it you should use the startup files described below.

For full details on the Informatics bash startup mechanism, see the bashdefenv man page as this information supersedes the bash man page.

This is how the startup files behave on DICE Ubuntu:

~/.brc is executed every time a new shell starts. Use this to set aliases, which do not automatically propagate to subshells.
~/.benv is executed every time a shell starts in a new environment. Use this to set environmental variables or functions, for example - things which can be "export"ed to subshells.
~/.bprofile is executed when you login (except when logging in to a remote desktop - so you might be better off using ~/.benv).
~/.inputrc is used to set the key bindings for command line editing operations.
~/.bash_logout this is unchanged from the standard bash name and behaviour. See man bash for definitive advice.

We do not recommend using the standard .bashrc, .bash_env or .bash_profile files.

You can add directories to bash's command search path using setpath as an alternative to manipulating the $PATH variable directly. This helps set up the search path in the right order.

Last reviewed: 
17/06/2020

System Status

Home dirs (AFS)
Network
Mail
Other services
University services
Scheduled downtime

Choose a topic