[Seek Help] ln命令添加环境变量和bashrc等有什么区别?
Tofloor
poster avatar
187******75
deepin
2022-12-16 19:53
Author

/etc/environment 是设置整个系统的环境

/etc/profile 是设置所有用户的环境

/etc/bash.bashrc

/etc/enviroment –>/etc/profile –>~/.profile –>/etc/bash.bashrc–> ~/.bashrc

Reply Favorite View the author
All Replies
enforcee
deepin
2022-12-16 21:41
#1

bashrc是只有运行bash的时候才会加载。有的时候你换成别的shell了或者是用图形界面,用bashrc设置的环境变量就没有用了

Reply View the author
安洛
deepin
2022-12-16 23:10
#2

ln命令不是用来建立链接的么?

这种时候就要搬出arch wiki:

https://wiki.archlinuxcn.org/wiki/%E7%8E%AF%E5%A2%83%E5%8F%98%E9%87%8F

Reply View the author