Laughing
解决登录linux环境后每次都要source /etc/profile使环境变量生效问题
05/12
本文最后更新于2021年05月12日,已超过1097天没有更新。如果文章内容或图片资源失效,请留言反馈,我会及时处理,谢谢!
编辑~/.bashrc
文件
vi ~/.bashrc
在末尾添加如下代码
if [ -f /etc/profile ]; then
. /etc/profile
f
~/.bashrc
文件vi ~/.bashrc
if [ -f /etc/profile ]; then
. /etc/profile
f
:wq
保存退出即可
支持