export PATH =〜/ workspace / swift-dev / usr / bin:" $ {PATH}"

时间:2016-02-12 01:40:34

标签: bash path terminal

取自 https://swift.org/download/#linux

  

导出PATH = / path /到/ usr / bin:" $ {PATH}"

我每次都要这样做!?它会阻止路径事件,这是因为我必须有行政权限吗?

1 个答案:

答案 0 :(得分:1)

尝试编辑.bashrc文件并包含以下行:

export PATH=/path/to/usr/bin:"${PATH}"

然后使用:

来源.bashrc
source ~/.bashrc

或:

. ~/.bashrc