狠狠综合久久av,国产白丝在线观看,精品一区二区国语对白,欧洲在线视频

聯(lián)系我們 - 廣告服務(wù) - 聯(lián)系電話:
您的當(dāng)前位置: > 關(guān)注 > > 正文

天天觀察:nix系統(tǒng)上加載/管理模塊的命令 linux常用命令之module

來源:CSDN 時(shí)間:2023-03-16 07:28:37

module概述

module是 *nix 系統(tǒng)上加載/管理模塊的命令。

module安裝


(資料圖片僅供參考)

大多數(shù)發(fā)行版上并未默認(rèn)安裝,運(yùn)行該命令則會(huì)出現(xiàn)如下錯(cuò)誤:

module: command not found。

需手動(dòng)執(zhí)行安裝命令,安裝軟件包 environment-modules:

For CentOS:

[root@localhost ~]# dnf install environment-modules

For Ubuntu:

[miya@localhost ~]# sudo apt-get install environment-modules

注意:安裝完成后,已打開的終端要重新打開,命令才能生效。

語法格式

module [options] [command] [args ...]

參考實(shí)例

列出已加載的模塊:list

[root@localhost ~]# module listNo Modulefiles Currently Loaded.

查看可用模塊:avail

[root@localhost ~]# module avail-------------------------------------------------- /usr/share/Modules/modulefiles ---------------------------------------------------dot  module-git  module-info  modules  null  use.own

顯示模塊信息:show/display

[root@localhost ~]# module avail-------------------------------------------------- /usr/share/Modules/modulefiles ---------------------------------------------------dot  module-git  module-info  modules  null  use.own------------------------------------------------------- /root/privatemodules --------------------------------------------------------null[root@localhost ~]# [root@localhost ~]# module show null-------------------------------------------------------------------/usr/share/Modules/modulefiles/null:module-whatis   {does absolutely nothing}-------------------------------------------------------------------[root@localhost ~]# [root@localhost ~]# module display module-git-------------------------------------------------------------------/usr/share/Modules/modulefiles/module-git:module-whatis   {get last version of the module sources from GitHub}set-alias       get-modules {git clone git://github.com/cea-hpc/modules.git && cd modules}-------------------------------------------------------------------

加載模塊:add/load

[root@localhost ~]# module add dot[root@localhost ~]# module load use.own[root@localhost ~]# module listCurrently Loaded Modulefiles: 1) dot   2) use.own

重新加載模塊:reload/refresh

[root@localhost ~]# module reload[root@localhost ~]# module refresh

卸載模塊:rm/unload

[root@localhost ~]# module listCurrently Loaded Modulefiles: 1) use.own   2) dot[root@localhost ~]# module rm use.own[root@localhost ~]# module unload dot[root@localhost ~]# module listNo Modulefiles Currently Loaded.

清空模塊:clear/purge

[root@localhost ~]# module listCurrently Loaded Modulefiles: 1) null[root@localhost ~]# module clearAre you sure you want to clear all loaded modules!? [n] y[root@localhost ~]# module listNo Modulefiles Currently Loaded.[root@localhost ~]# [root@localhost ~]# module listNo Modulefiles Currently Loaded.[root@localhost ~]# module add null[root@localhost ~]# module listCurrently Loaded Modulefiles: 1) null[root@localhost ~]# module purge[root@localhost ~]# module listNo Modulefiles Currently Loaded.

責(zé)任編輯:

標(biāo)簽:

相關(guān)推薦:

精彩放送:

新聞聚焦
Top 主站蜘蛛池模板: 中阳县| 五大连池市| 运城市| 衡阳县| 安庆市| 类乌齐县| 孟州市| 宝兴县| 瑞丽市| 高清| 江津市| 德江县| 新丰县| 潢川县| 元阳县| 黄浦区| 雷波县| 中阳县| 枞阳县| 潼关县| 汽车| 屯门区| 贡嘎县| 巴楚县| 二连浩特市| 澄江县| 荆门市| 临沭县| 西丰县| 廉江市| 合作市| 赤水市| 通榆县| 永吉县| 丽江市| 湾仔区| 子长县| 顺义区| 宁都县| 大丰市| 舟山市|