bash的配置文件:
全局配置:
etc/profile, /etc/profile.d/*.sh, /etc/bashrc
个人配置:
~/.bash_profile, ~/.bashrc
profile类文件:
设定环境变量
运行命令或者脚本
bashrc类的文件:
设定本地变量
定义命令别名
bash的配置文件:
全局配置:
etc/profile, /etc/profile.d/*.sh, /etc/bashrc
个人配置:
~/.bash_profile, ~/.bashrc
profile类文件:
设定环境变量
运行命令或者脚本
bashrc类的文件:
设定本地变量
定义命令别名
上一篇:bash配置文件的修改
下一篇:shell变量 和变量类型
再也不怕离职同事泄露配置文件的密码了
这篇是谈bash配置文件的,整理了马哥所讲的内容
一、登录类型 1、交互式登录 直接通过终端输入账号和密码登录 使用 su -l USERNAME 或 su - USERNAM
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M