1、 /etc/profile :系统环境变量配置文件。
~/.bash_profile :用户环境变量配置文件。
2、设置特定用户console为由英文环境:
在~/.bash_profile中设置export LANG=en_US
如果用户在console中切换为root,则环境变量切换为系统环境配置并无法随着用户的切换而切换。
~/.bash_profile :用户环境变量配置文件。
2、设置特定用户console为由英文环境:
在~/.bash_profile中设置export LANG=en_US
如果用户在console中切换为root,则环境变量切换为系统环境配置并无法随着用户的切换而切换。
本文介绍了如何通过配置/etc/profile和~/.bash_profile来设置系统的环境变量,以及如何为特定用户配置英文环境变量的方法。当用户在console中切换到root用户时,环境变量将遵循系统配置,而非随用户切换而改变。
2132

被折叠的 条评论
为什么被折叠?



