summaryrefslogtreecommitdiff
path: root/sys-cluster/lmod/files/module.1-8.4.20
blob: 2ec20e04ac854ec7ca821a0affa9731255fd983b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
.Dd $Mdocdate: December 6 2020 $
.Dt MODULE 1
.Os
.Sh NAME
.Nm module
.Nd lmod environment modules manager
.Sh SYNOPSIS
.Nm module
.Op Ar options
.Cm sub-command
.Op Ar args ...
.Sh DESCRIPTION
.Nm
from
.Sy Lmod
is a
.Xr lua 1
based module system to manage the users' environment under
Unix systems, specifically designed to easily handle
the
.Ev MODULEPATH
Hierarchical problem.
Environment Modules provide a convenient way to
dynamically change the users' environment through modulefiles.
This includes easily adding or removing directories from the
.Ev PATH , LD_LIBRARY_PATH , CPATH
and other environment variables.
All popular shells are supported, including bash, csh, fish,
ksh, sh, tcsh, zsh, as well as some scripting languages such
as tcl, perl and python.
.Sh OPTIONS
The following
.Ar options
are available:
.Pp
.Bl -tag -width Ds -compact
.It Fl h , \&? , H , -help
Show the help message.
.Pp
.It Fl -check_syntax , -checkSyntax
Only check the
.Nm
command syntax, do not load any modules.
.Pp
.It Fl -config
Report
.Sy Lmod
configuration.
.Pp
.It Fl -config_json
Report
.Sy Lmod
configuration in json format.
.Pp
.It Fl D
Write program tracing data to stderr.
.Pp
.It Fl d , -default
List default modules only when used with
.Cm avail .
.Pp
.It Fl -debug Ar dbglvl
.Sy VALUES :
1, 2, 3.
.Pp
Only write trace output with proper debug levels.
.Pp
.It Fl -dumpversion
Dump version in a machine readable way and quit.
.Pp
.It Fl -expert
Work in expert mode.
.Pp
.It Fl -force
Force removal of a sticky module or save an empty collection.
.Pp
.It Fl -gitversion
Dump git version in a machine readable way and quit.
.Pp
.It Fl -ignore_cache
Treat the cache file(s) as out-of-date.
.Pp
.It Fl -initial_load
Loading Lmod for first time in a user shell.
.Pp
.It Fl -latest
Load latest (ignore default).
.Pp
.It Fl -mt
Report Module Table State.
.Pp
.It Fl -no_redirect
Force output of
.Cm list ,
.Cm avail
and
.Cm spider
to stderr.
.Pp
.It Fl -novice
Turn off
.Fl -expert
and
.Fl -quiet
flags.
.Pp
.It Fl -nx , -no_extensions
.Pp
.It Fl -pin_versions Ar pinVersions
When doing a restore use the specified version, do not follow defaults.
.Pp
.It Fl q , -quiet
Do not print out warnings.
.Pp
.It Fl r , -regexp
Use regular expression match.
.Pp
.It Fl -raw
Print modulefile in raw output when used with show.
.Pp
.It Fl -redirect
Send the output of
.Cm list ,
.Cm avail
and
.Cm spider
to stdout (not stderr).
.Pp
.It Fl -regression_testing
Lmod regression testing.
.Pp
.It Fl -show_hidden
.Cm avail
and
.Cm spider
will report hidden modules.
.Pp
.It Fl -spider_timeout Ar timeout
A timeout for
.Cm spider .
.Pp
.It Fl s , -style Ar availStyle
.Sy DEFAULT :
system
Site controlled avail style.
.Pp
.It Fl T , -trace
.Pp
.It Fl t , -terse
Write out in machine readable format for
.Cm list ,
.Cm avail ,
.Cm spider
and
.Cm savelist .
.Pp
.It Fl -timer
Report run times.
.Pp
.It Fl v , -version
Print version info and quit.
.Pp
.It Fl -w , -width Ar twidth
Use
.Ar twidth
as max term width.
.El
.Sh SUB-COMMANDS
.Ss HELP
.TS
tab(@);
r l l.
T{
.Cm help
T}@@T{
Print the help message.
T}
T{
.Cm help
T}@T{
.Ar module Op Ar moduleX moduleY ...
T}@T{
Print help messages from the given modules.
T}
.TE
.Ss LOAD
.TS
tab(@);
r l l.
T{
.Cm load , add
T}@T{
.Ar module Op Ar moduleX moduleY ...
T}@T{
Load the given modules.
T}
T{
.Cm try-load , try-add
T}@T{
.Ar module Op Ar moduleX moduleY ...
T}@T{
Load the given modules, do not complain if not found.
T}
T{
.Cm del , unload
T}@T{
.Ar module Op Ar moduleX moduleY ...
T}@T{
Unload the module(s), does not complain if not found.
T}
T{
.Cm swap , sw , switch
T}@T{
.Ar moduleX moduleY
T}@T{
.Cm unload Ar moduleX
and
.Cm load Ar moduleY
T}
T{
.Cm purge
T}@@T{
.Cm unload
all modules
T}
T{
.Cm refresh
T}@@T{
Reload aliases from the current list of modules.
T}
T{
.Cm update
T}@@T{
Reload all currently loaded modules.
T}
.TE
.Ss SEARCH
.TS
tab(@);
r l l.
T{
.Cm list
T}@@T{
List all currently loaded modules.
T}
T{
.Cm list
T}@T{
.Ar patX Op Ar patY ...
T}@T{
List all loaded modules that match any of the given patterns.
T}
T{
.Cm avail , av
T}@T{
.Op Ar string
T}@T{
List all available modules.
Restricts to modules containing
.Ar string
if it is provided.
T}
T{
.Cm spider
T}@@T{
List all possible modules.
T}
T{
.Cm spider
T}@T{
.Ar module
T}@T{
List all possible versions of that
.Ar module
file.
T}
T{
.It Cm spider
T}@T{
.Ar string
T}@T{
List all modules that contain
.Ar string .
T}
T{
.Cm spider
T}@T{
.Ar name/version
T}@T{
Detailed information about that version of the module.
T}
T{
.It Cm whatis
T}@T{
.Ar module
T}@T{
Print whatis information about the module.
T}
T{
.Cm keyword , key 
T}@T{
.Ar string
T}@T{
Search all name and
.Cm whatis
that contain
.Ar string .
T}
.TE
.Pp
All searching commands (
.Cm spider ,
.Cm list ,
.Cm avail ,
.Cm keyword
) support regular expressions with the
.Fl r
flag.
.Pp
For example, to find all modules that start with
.Sq p
or
.Sq P :
.D1 module -r spider '^p'
.Pp
Find all modules that have
.Dq mpi
in their name:
.D1 module -r spider mpi
.Pp
Find all modules that end with
.Dq mpi
in their name:
.D1 module -r spider 'mpi$'
.Ss COLLECTIONS
.TS
tab(@);
r l l.
T{
.Cm save , s
T}@@T{
Save the current list of modules to a user defined
.Dq default
collection.
T}
T{
.Cm save , s
T}@T{
.Ar name
T}@T{
Save the current list of modules to the
.Ar name
collection.
T}
T{
.Cm reset
T}@@T{
The same as
.Cm restore
.Ar system .
T}
T{
.Cm restore , r
T}@@T{
Restore modules from the user's
.Dq default
(if defined) or the system default.
T}
T{
.Cm restore , r
T}@T{
.Ar name
T}@T{
Restore modules from
.Ar name
collection.
T}
T{
.Cm restore
T}@T{
.Ar system
T}@T{
Restore module state to system defaults.
T}
T{
.Cm savelist
T}@@T{
List of saved collections.
T}
T{
.Cm describe , mcc
T}@T{
.Ar name
T}@T{
Describe the contents of the
.Ar name
module collection.
T}
T{
.Cm disable
T}@T{
.Ar name
T}@T{
Disable (i.e. remove) the
.Ar name
collection.
T}
.TE
.Ss MISC
.TS
tab(@);
r l l.
T{
.Cm is-loaded 
T}@T{
.Ar modulefile
T}@T{
Return a true status if
.Ar module
is loaded.
T}
T{
.Cm is-avail
T}@T{
.Ar modulefile
T}@T{
Return a true status if
.Ar module
can be loaded.
T}
T{
.Cm show
T}@T{
.Ar modulefile
T}@T{
Show the commands in the
.Ar module
file.
T}
T{
.Cm use [-a]
T}@T{
.Ar path
T}@T{
Prepend or append
.Ar path
to
.Ev MODULEPATH .
T}
T{
.Cm unuse
T}@T{
.Ar path
T}@T{
Remove
.Ar path
from
.Ev MODULEPATH .
T}
T{
.Cm tablelist
T}@@T{
Output list of active modules as a lua table.
T}
.TE
.Ss DEPRECATED
.TS
tab(@);
r l l.
T{
.Cm getdefault
T}@T{
.Op Ar name
T}@T{
Load the
.Ar name
collection of modules or the users
.Dq default
if no
.Ar name
given. Use
.Cm restore
Instead.
T}
T{
.Cm setdefault
T}@T{
.Op Ar name
T}@T{
Save current list of modules to
.Ar name
if given, otherwise save as the
.Dq default
list for the user. Use
.Cm save
instead.
T}
.TE
.Sh ENVIRONMENT
To print properties and warnings in color, set the
.Ev LMOD_COLORIZE
environment variable to
.Sy YES .
.Sh SEE ALSO
.Bd -filled -offset indent
.TS
tab(@);
rb l.
T{
Documentation
T}@T{
.Lk http://lmod.readthedocs.org
T}
T{
Github
T}@T{
.Lk https://github.com/TACC/Lmod
T}
T{
Sourceforge
T}@T{
.Lk https://lmod.sf.net
T}
T{
TACC Homepage
T}@T{
.Lk https://www.tacc.utexas.edu/research-development/tacc-projects/lmod
T}
.TE
.Ed
.Pp
To report a bug please read
.Lk http://lmod.readthedocs.io/en/latest/075_bug_reporting.html
.Sh AUTHORS
Modules based on Lua, written by
.An Robert McLay Aq Mt mclay@tacc.utexas.edu .
.Pp
The man page for Gentoo linux is maintained by the
.An Gentoo Science Project Aq Mt sci@gentoo.org .