MODULECMD(1)
π MODULECMD(1) β the Modules manual, bestie edition π
ok so you opened the modulecmd page (section 1 of the Modules manual, hi π) and honestly? you're in the engine room now. buckle up β¨
πΈ NAME πΈ
modulecmd β a generic wrapper that points at the Modules execution engine. that's it, that's the vibe π«Ά
β SYNOPSIS β
modulecmd shell [switches] [sub-command [sub-command-args]]
π DESCRIPTION π
okay so modulecmd is a generic wrapper β it just points over at the Modules execution engine, modulecmd.tcl. literally a little signpost with main character energy π
modulecmd.tcl is the low-level execution engine of the Environment Modules system. bestie, this is the one doing the actual work: it evaluates modulefile logic and emits shell-specific commands that modify the user's environment. ate and left no crumbs π₯
and here's the important plot twist β unlike the user-facing module command, modulecmd.tcl does not directly alter the environment. nope π instead it writes shell code to standard output, which must be evaluated by the calling shell. it's giving "i made you a playlist, you gotta press play yourself" π§
so the module shell function or wrapper script invokes modulecmd.tcl internally and evaluates its output to actually apply the environment changes. teamwork, slay π€
these are the supported shells, and yes the list is long, she's thorough π :
sh, csh, tcsh, bash, ksh, zsh, fish, cmd, pwsh, python, perl, ruby, tcl, cmake, r and lisp
π for the full lore, go peek at the Modulecmd startup, Command line switches and Module Sub-Commands sections in the module man page. iykyk β¨
ngl, direct invocation of modulecmd is primarily intended for debugging and advanced usage. end users should normally use the module command instead β that's the friendly front door, this is the secret staff entrance πͺπ¦
π¦ EXIT STATUS π¦
modulecmd exits with 0 on successful execution. otherwise 1 is returned. no in-between, no "it's complicated" π
π ENVIRONMENT π
see the ENVIRONMENT section in the module man page for the whole rundown π
π FILES π
see the FILES section in the module man page, all the deets live there πβ¨
π SEE ALSO π
envmlmlmodulemodulefile
go read them, they're iconic, all of them π
π Copyright π
1996-2026, Modules Contributors π«Ά
and that's a wrap, bestie β brought to you by version 5.7.0, dated 2026-09-21. go forth and configure your environment, you absolute legend π
πΈπ
π¦ where this page comes from
- arch rolling: environment-modules 5.7.0-3 Β· GPL-2.0-or-later
- centos-stream 10: environment-modules 5.7.0-1.el10 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms