shell编程之系统环境变量

点后面加上空格+配置文件等价于source 配置文件

常见的系统环境变量的配置

Bash_profile和.bashrc存在在家目录下,~表示家目录

[root@localhost home]# cd ~

[root@localhost ~]# pwd

/root

[root@localhost ~]#

修改家目录下的配置文件,只对当前用户有效,修改/etc目录下的文件对所有的目录都有效

 Profile 、profile和bashrc是存在/etc目录下。

posted on 2018-07-23 17:39  luzhouxiaoshuai  阅读(148)  评论(0编辑  收藏  举报

导航