Posted on: August 3, 2018
The module command is a user interface to the Modules package. The Modules package provides for the dynamic modification of the user’s environment via modulefiles (a modulefile contains the information needed to configure the shell for an application). Modules are independent of the user’s shell, so both tcsh and bash users can use the same commands to change the environment.
Command
|
Description
|
---|---|
module avail | lists all available modules |
module list | lists currently loaded modules |
module help modulefile | help on module modulefile |
module display modulefile | Display information about modulefile |
module load modulefile | load modulefile into the current shell environment |
module unload modulefile | remove modulefile from the current shell environment |
module swap modulefile1 modulefile2 | unload modulefile1 and load modulefile2 |
To include particular software in the environment for all new shells: edit your shell configuration file (
$HOME/.bashrc
for bash users
$HOME/.cshrc
and for tcsh users) by adding the module commands to load the software that you want to be a part of your environment. After saving your changes, you can source your shell configuration file or log out and then log back in for the changes to take effect.
Order Is Important
Modules SourceForge » Home page for the Environment Modules open-source project.