linux用户环境变量

it2022-05-05  145

~/.bash_profile  用于设置用户专属的环境信息,login方式进去bash运行,每次用户登录的时候执行一次,通常会调用bash_profile

~/.bashrc 用于设置当前shell 的环境信息,no login方式进入bash运行,shell新起的时候执行

对于用户专属的环境变量只需在~/.bash_profile中设置

若添加后没重新登录,只需source ~/.bash_profile

转载于:https://www.cnblogs.com/ManMonth/p/3469397.html

相关资源:各显卡算力对照表!

最新回复(0)