命令在终端提示符下可用,但无处可寻

时间:2021-07-26 09:19:48

This is puzzling. I can use the module command at the terminal prompt, but I can't find where the executable is located in the file system! I did the three following searchs:

这令人费解。我可以在终端提示符下使用module命令,但是我找不到文件系统中可执行文件的位置!我做了以下三个搜索:

1- which module returns "no module in ...",

1-哪个模块返回“没有模块进入......”,

2- searched module under the bin/ directories of the PATH variable ... nothing,

在PATH变量的bin /目录下搜索到的模块...没有,

3- locate module | grep -e "/module$" ...nothing.

3-定位模块| grep -e“/ module $”......什么都没有。

None of these searches gave me the location! Suggestions, please?

这些搜索都没有给我这个位置!建议好吗?

2 个解决方案

#1


1  

Is module perhaps set as an alias? You could try this:

模块是否可以设置为别名?你可以试试这个:

type -a module

#2


0  

One more suggestion:

还有一个建议:

find / -name "module*" 

As root

#1


1  

Is module perhaps set as an alias? You could try this:

模块是否可以设置为别名?你可以试试这个:

type -a module

#2


0  

One more suggestion:

还有一个建议:

find / -name "module*" 

As root