* **全局**配置文件
* `/etc/profile`
* `/etc/profile.d/*.sh`
* `/etc/bashrc`
* **个人**配置文件
* `~/.bash_profile`
* `~/.bashrc`由上可知,bash 的* profile 类文件作用:
* 1.**设定环境变量**。
* 2.**运行命令或脚本**(登录时运行的脚本)。
* bashrc 类文件配置作用:
* 1. 设定本地变量。
* 2. 定义命令别名/etc/profile –> /etc/profile.d/*.sh –> ~/.bash_profile–> ~/.bashrc –> /etc/bashrc~/.bashrc –> /etc/bashrc –> /etc/prodile.d/*.sh
原文链接:https://rumenz.com/rumenbiji/linux-nologin-shell.html
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。