目录
学习python风格, 优雅规范书写shell代码
配置文件: /etc/motd
可以在/etc/motd文件中写:
- logo
- 机柜位置, 机器SN号码等物理信息
- 服务器角色
- 操作注意事项
- ...
Global Level | User level | |
---|---|---|
Login Shell | /etc/profile | ~/.bash_profile |
Non-login Shell | /etc/bashrc | ~/.bashrc |
在启动脚本文件中设置环境变量, 别名(alias), 执行命令等作用
~/.bash_history
~/.bash_logout
Run when a login shell exits
Used for:
- Creating automatic backups
- Cleaning out temporary files
原文:https://www.cnblogs.com/zakzhu/p/11615428.html