Linux - 系统路径加入命令

系统路径加入命令


本文地址: http://blog.csdn.net/caroline_wendy


1. 在根文件夹建立bin文件夹:
$mkdir bin


2. 改动".bash_profile”:
$vi ~/.bash_profile


3. 在”.bash_profile"加入系统路径:
PATH=$PATH:/Users/wangchenlong/bin
export PATH


4. 更新”.bash_profile”:
$source ~/.bash_profile


5. 显示路径, 是否载入成功
$echo $PATH


6. 建立软链接
$ln -s  /Users/wangchenlong/Installations/gradle-1.11/bin/gradle gradle


7. 測试
$gradle -version






posted @ 2017-04-20 18:58  cxchanpin  阅读(933)  评论(0编辑  收藏  举报