/usr/bin/xxx

ln -sf xxx命令路径 /usr/bin/xxx

-s保存

-sf保存并替换

例如:

ln -sf /usr/local/src/node/bin/node /usr/bin/node

ln -sf /usr/local/src/node/bin/npm /usr/bin/npm

这样就可以在全局使用node命令和npm命令

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-04
  • 2021-10-01
  • 2022-02-08
  • 2022-12-23
相关资源
相似解决方案