解决登录linux环境后每次都要source /etc/profile使环境变量生效问题
解决办法:1.编辑~/.bashrc文件vim ~/.bashrc2.在末尾添加如下代码if [ -f /etc/profile ]; then. /etc/profilefi3.wq保存退出即可
·
解决办法:
1.编辑~/.bashrc文件
vim ~/.bashrc
2.在末尾添加如下代码
if [ -f /etc/profile ]; then
. /etc/profile
fi
3.wq保存退出即可
更多推荐
已为社区贡献1条内容
所有评论(0)