Lmod: Difference between revisions

From NU HPC Wiki
Jump to navigation Jump to search
(Created page with " In linux environment variables are values that can change and impact how programs behave on a computer system. They are name-value pairs that all processes can access within a particular user environment or shell session. These variables provide a flexible and convenient method for managing system-wide settings, configuring applications, and customizing system behavior. Shabyt uses Environment modules (also know as LMOD) to dynamically set up environment variables for...")
 
No edit summary
Line 2: Line 2:
In linux environment variables are values that can change and impact how programs behave on a computer system. They are name-value pairs that all processes can access within a particular user environment or shell session. These variables provide a flexible and convenient method for managing system-wide settings, configuring applications, and customizing system behavior.
In linux environment variables are values that can change and impact how programs behave on a computer system. They are name-value pairs that all processes can access within a particular user environment or shell session. These variables provide a flexible and convenient method for managing system-wide settings, configuring applications, and customizing system behavior.


Shabyt uses Environment modules (also know as LMOD) to dynamically set up environment variables for different software. Module commands set, change, or delete environment variables that are needed for a particular software. The ‘module load‘ command will set PATH, LD_LIBRARY_PATH and other environment variables such that user may choose a desired version of applications or libraries more easily. More details can be found here.
Shabyt uses Environment modules (also know as LMOD) to dynamically set up environment variables for different software. Module commands set, change, or delete environment variables that are needed for a particular software. The ‘<code>module load</code>‘ command will set ''PATH'', ''LD_LIBRARY_PATH'' and other environment variables such that user may choose a desired version of applications or libraries more easily. More details can be found here.
 
{| class="wikitable"
Environment module commands
|+Environment module commands
Command Description
!Command
module avail List of available software
!Description
module keyword [word] Search for available modules matching the keyword
|-
module spider [word] Show the details of any modules matching the keyword
|module avail
module whatis [module] Show the short description about module
|List of available software
module load [package1] [package2] Load the environment for the default version of the modulefile
|-
module load [package]/[version] Load the environment for the specified version of module
|module keyword [word]
module unload [package1] [package2] Unload previously loaded packages
|Search for available modules matching the keyword
module swap [moduleA] [moduleB] Unload modulefile A and load modulefile B
|-
module list List any currently loaded module(s)
|module spider [word]
module purge Unload all currently loaded modules
|Show the details of any modules matching the keyword
|-
|module whatis [module]
|Show the short description about module
|-
|module load [package1] [package2]
|Load the environment for the default version of the modulefile
|-
|module load [package]/[version]
|Load the environment for the specified version of module
|-
|module unload [package1] [package2]
|Unload previously loaded packages
|-
|module swap [moduleA] [moduleB]
|Unload modulefile A and load modulefile B
|-
|module list
|List any currently loaded module(s)
|-
|module purge
|Unload all currently loaded modules
|}

Revision as of 03:44, 3 July 2024

In linux environment variables are values that can change and impact how programs behave on a computer system. They are name-value pairs that all processes can access within a particular user environment or shell session. These variables provide a flexible and convenient method for managing system-wide settings, configuring applications, and customizing system behavior.

Shabyt uses Environment modules (also know as LMOD) to dynamically set up environment variables for different software. Module commands set, change, or delete environment variables that are needed for a particular software. The ‘module load‘ command will set PATH, LD_LIBRARY_PATH and other environment variables such that user may choose a desired version of applications or libraries more easily. More details can be found here.

Environment module commands
Command Description
module avail List of available software
module keyword [word] Search for available modules matching the keyword
module spider [word] Show the details of any modules matching the keyword
module whatis [module] Show the short description about module
module load [package1] [package2] Load the environment for the default version of the modulefile
module load [package]/[version] Load the environment for the specified version of module
module unload [package1] [package2] Unload previously loaded packages
module swap [moduleA] [moduleB] Unload modulefile A and load modulefile B
module list List any currently loaded module(s)
module purge Unload all currently loaded modules