什么是 "th"、"python"、"python3"、"java" 等...用于 运行 脚本的命令前面?

What is the "th", "python", "python3", "java", etc... used in front a command to run a script, called?

在使用 Torch 的 Lua 中,您使用 "th" 到 运行 一个 Lua 脚本。在 Python 中,您可以使用 "python" 或 "python3" 来 运行 一个 python 脚本。在 Java 中,您使用 "java" 到 运行 一个 java class 脚本。

命令前面的这个词到底叫什么?我试着自己搜索这个名字,但我找不到任何东西。

这只是一个 shell 命令。与 cdgrep 等没有任何区别

在 Python 的情况下,python 命令调用 Python 解释器,启动交互式会话,或者,如果指定了文件,运行通过解释器的文件。但它只是告诉 shell 一些事情要做。