shell脚本之环境变量

linux系统环境变量配置文件所在位置
/etc/profile
/etc/profiled/*.sh
~/.bash_profile
~/.bashrc
/etc/bashrc
配置文件的执行过程
在这里插入图片描述
注销时生效的环境变量配置文件
~/.bash_logout
历史命令存储位置
~/bash_history
shell登录信息
本地终端欢迎信息:/etc/issue
在这里插入图片描述
远程终端欢迎信息 :/etc/issue.net
转义符在/etc/issue.net文件不能使用
是否显示此欢迎信息,由ssh的配置文件/etc/ssh/sshd_config决定,加入
“Banner /etc/issue.net” 行才能显示
在这里插入图片描述

远程终端和本地终端都可以显示:/etc/motd
在这里插入图片描述
在这里插入图片描述