添加并保存新的路径到PATH:
-
所有用户:
/etc/profile
/etc/bashrc -
当前用户
.bashrc
.bash_profile -
gedit /etc/profile或 gedit .bashrc
-
source /etc/profile或 source .bashrc 保存并生效
添加并保存新的路径到PATH:
所有用户:
/etc/profile
/etc/bashrc
当前用户
.bashrc
.bash_profile
gedit /etc/profile或 gedit .bashrc
source /etc/profile或 source .bashrc 保存并生效