这是来自的输出which -a autoconf
:
/usr/bin/autoconf
/usr/bin/autoconf
/home/amumu/root/bin/autoconf
Run Code Online (Sandbox Code Playgroud)
我想在我的主目录中使用 autoconf,因为与服务器中的默认版本相比,它是较新的版本。如何将其设置为默认值?我不想覆盖/usr/bin/autoconf
或写入/usr/local/bin
dev*_*ull 10
你可以改变PATH
这样的,autoconf
在你的主目录中将被选中:
PATH=/home/amumu/root/bin:${PATH}
export PATH
Run Code Online (Sandbox Code Playgroud)
如果它在该位置可用,这将导致autoconf
从 中挑选/home/amumu/root/bin
。