Linux 系统级别PATH添加目录 修改此文件 /etc/profile.d/sh.local ,添加如下内容 pathmunge /usr/local/bin after # pathmunge 是个shell函数 after 表示在路径后面添加,不加after 表示在路径签名加 # /usr/local/bin 是我们要添加到PATH的路径