Using .bashrc files - UCL/ECON-CLUSTER GitHub Wiki

If there are some commands you must execute every time you logon to the cluster, you can put them in a ".bashrc" file. Commands in this file will run automatically. For example,

  1. Create a file named ".bashrc", with the following content:

    . /share/apps/econ/Modules/modules.sh module load stata

  2. copy the file to your home directory on the cluster.

Next time you logon, the system will automatically:

  1. execute the script modules.sh
  2. load the Stata module