ubuntu export 在其他终端失效解决方法

在root权限下修改/etc/profile文件

sudo vim /etc/profile

在最后一行添加要增加的环境变量

export QT_SELECT="qt5.12.11"

刷新/etc/profile

source /etc/profile

重启系统后,即可解决export在其它终端失效的问题。

posted @ 2022-08-27 09:49  k_kK  阅读(81)  评论(0编辑  收藏  举报