方法一(僅此shell添加):shell
終端執行 export PATH=$PATH:/***/***file
方法二(全局添加):終端
修改/etc/profile方法
export PATH="$PATH:/***/***"
終端運行source /etc/profile