Linux-系统路径添加命令


系统路径添加命令

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

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

.bash_profile”:
$vi ~/.bash_profile
系统路径:
PATH=$PATH:/Users/wangchenlong/bin
export PATH

.bash_profile”:
$source ~/.bash_profile
显示路径, 是否加载成功
$echo $PATH
软链接
$ln -s  /Users/wangchenlong/Installations/gradle-1.11/bin/gradle gradle
测试
$gradle -version

 

相关内容