繁体   English   中英

如何设置在linux中执行哪个二进制文件

[英]how to set which binary file to execute in linux

我的机器中有 2 个名为“jupyter-notebook”的二进制文件:

$ which jupyter-notebook

我得到结果:

jupyter-notebook is /usr/local/bin/jupyter-notebook
jupyter-notebook is /anaconda3/bin/jupyter-notebook

似乎当我输入$ jupyter-notebook它会自动运行第一个。 如何配置它以运行第二个?

您可以为此使用别名。 在您的 shell 中运行以下命令。

别名 jupyter-notebook="/anaconda3/bin/jupyter-notebook"

如果你希望它是永久的,那么把它放在你的 shell rc 文件中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM