---
title: Module 基本說明 | zh
tags: Guide, TWNIA3, TW
GA:
---
{%hackmd @docsharedstyle/default %}
# Module 基本說明
國網中心的高速計算環境皆已導入Module設定環境,台灣杉一號使用Enviroment Module,台灣杉二號與三號採用Lmod,讓計算開發環境設定更加簡單方便。Module為二者通用命令,指令皆相通,且Lmod可以直接讀取Enviroment的modulefile設定,Enviroment Module的使用者可以毫無困難切換到Lmod環境下使用。Lmod另提供 <b>[ml 指令](https://man.twcc.ai/@TWCC-III-manual/S1nAD7sod)</b>,讓操作更加簡潔。
使用者可根據以下說明進行操作:
### 常用指令與功能
使用者於設定系統操作環境時,無須透過shell各自不同的指令來設定環境,僅需使用moudule或ml操作,簡單幾個步驟即可完成複雜的設定。module 常用指令與功能如下表:
| 指令 | 功能 |
|:-----:|:-----:|
|[list](https://man.twcc.ai/W7ir_FVITO-Ehl-AqC8vWA#module-list) | 列出已載入的modulefile |
|[avail](https://man.twcc.ai/W7ir_FVITO-Ehl-AqC8vWA#module-avail) | 列出可以使用的modulefile |
|[spider](https://man.twcc.ai/W7ir_FVITO-Ehl-AqC8vWA#module-spider) | 搜尋所有可能的模組 |
|[show / display](https://man.twcc.ai/W7ir_FVITO-Ehl-AqC8vWA#module-show--display) | 顯示modulefile內容 |
|[load / add](https://man.twcc.ai/W7ir_FVITO-Ehl-AqC8vWA##module-load--add) | 載入modulefile |
|[save / s](https://man.twcc.ai/W7ir_FVITO-Ehl-AqC8vWA#module-save--s) | 儲存模組組合 |
|[restore / r](https://man.twcc.ai/W7ir_FVITO-Ehl-AqC8vWA#module-restore--r)| 讀取儲存的模組組合|
|[savelist](https://man.twcc.ai/W7ir_FVITO-Ehl-AqC8vWA#module-savelist)| 列出已儲存的模組組合|
|[unload / del / rm](https://man.twcc.ai/W7ir_FVITO-Ehl-AqC8vWA#module-unload--del--rm) | 移除載入的特定modulefile |
|[swap/sw / switch m1 m2](https://man.twcc.ai/W7ir_FVITO-Ehl-AqC8vWA#module-swap--sw--switch)| 卸載 m1 設定並讀取 m2 設定|
|[purge](https://man.twcc.ai/W7ir_FVITO-Ehl-AqC8vWA#module-purge)| 移除所有已載入的module file |
|[whatis / help](https://man.twcc.ai/W7ir_FVITO-Ehl-AqC8vWA#module-help) | 查詢模組說明|