ML(1)
ML(1) β handy command interface to the Modules package π
okay bestie, this is the ML(1) page from the Modules manual, and it's literally your shortcut bestie for the Modules package β¨ no cap.
β¨ NAME β¨
ml β handy command interface to the Modules package. π
πΈ SYNOPSIS πΈ
ml [switches] [sub-command [sub-command-args]]
ml [switches] [[-]modulefile...]
π¦ DESCRIPTION π¦
ml is a user interface to the Modules package. The Modules package provides for the dynamic modification of the user's environment via modulefiles. π«Ά
ml acts as a shortcut command to the module command, so it supports all the command line switches and module sub-commands that are supported by module. Literally all of them, bestie. π
ml also provides handy shortcuts:
- to list currently loaded modulefiles when no argument is provided to
ml; - to load modulefiles when modulefile names are passed right after the
mlcommand name; - to unload modulefiles when modulefile names prefixed by a minus sign (
-) are passed right after themlcommand name. π
Multiple modulefiles to load and to unload can be specified on a single ml command line. In this situation unloads are treated first in specified order, then loads are processed also in specified order (see EXAMPLES section below). π₯
If an error occurs among either modulefile loads or unloads, command line processing is stopped and every unloads and loads performed are rolled back. Conversely, if ml is removed from abort_on_error (<#mconfig-abort_on_error>) configuration option list or if --force (<#cmdoption-force>) option is set, unload and load sequence continues: already achieved module evaluations are kept and unload then load sequence is resumed with the remaining modulefiles. π
The ml command line is parsed first to match every known command line switches or module sub-commands. So to load a modulefile via the ml shortcut syntax, the modulefile name should not equal a module sub-command name. Moreover, to unload a modulefile via the ml shortcut syntax, the modulefile name should not equal a command line switch short name. β οΈ
See the DESCRIPTION (<#module-description>) section in module (<#module-1>) for the list of supported command line switches and module sub-commands. π
π EXAMPLES π
Loading modulefile foo then look at currently loaded modulefiles:
$ ml foo
$ ml
Currently Loaded Modulefiles:
1) foo
Unloading modulefile foo then list modulefiles still loaded:
$ ml -foo
$ ml
No Modulefiles Currently Loaded.
Mixing load and unload of modulefiles in a single command. All specified unloads are processed first then loads are performed:
$ ml -v -foo bar -baz qux
Unloading foo
Unloading baz
Loading bar
Loading qux
π EXIT STATUS π
The ml command exits with 0 if its execution succeed. Elsewhere 1 is returned. π―
π ENVIRONMENT π
See the ENVIRONMENT (<#module-environment>) section in module (<#module-1>) for the list of supported environment variables. π±
π SEE ALSO π
envml (<#envml-1>), module (<#module-1>), modulecmd (<#modulecmd-1>), modulefile (<#modulefile-5>) π
π«Ά Copyright π«Ά
1996-2026, Modules Contributors π«Ά
k bye bestie β this page is version 5.7.0, dated 2026-09-21, and it's giving ML(1) energy π
β¨
π¦ 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