Linux---1.11.shell(环境变量配置文件)
作者:互联网
-
source命令
- 作用 source 配置文件或者.配置文件 直接让配置文件生效 不用注销或重新登陆
-
环境变量配置文件
- 环境变量配置文件中主要是定义对系统的操作环境生效的系统默认环境变量,比如PATH,HISTSIZE,PS1,HOSTNAME等默认环境变量
-
系统主要有五类环境变量配置文件
- /etc/profile
- /etc/profile.d/*.sh 一组文件
- ~/.bash_profile
- ~/.bashrc
- /etc/bashrc
- 所有etc下的文件 对登陆用户都生效
-
/etc/profile的作用
- user变量
- LOGNAME变量
- mail变量
- PATH变量
- hostname变量
- histsize变量
- umask:
- 调用/etc/profile.d/*.sh文件
标签:profile,shell,变量,配置文件,1.11,bashrc,etc,环境变量 来源: https://www.cnblogs.com/FGdeHB/p/15570469.html