Choosing between multiple executables with same name in Linux

后端 未结 4 1844
借酒劲吻你
借酒劲吻你 2021-02-01 15:02

The system I am using has gnuplot installed in /usr/bin. I don\'t have root, but I needed a newer version of gnuplot, so I installed it to

4条回答
  •  野的像风
    2021-02-01 15:41

    Executables are found in PATH order. You need to prepend ${HOME}/usr/bin to your path, like so:

    export PATH="${HOME}/usr/bin:$PATH"
    

提交回复
热议问题