💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
## **bash 的配置文件** >[info] 按生效范围划分,存在两类 : > > 全局配置 > > > /etc/profile > > > /etc/profile.d/\*.sh > > > /etc/bashrc > > > 个人配置 > > > ~/.bash\_profile > > > ~/.bashrc >[success] 按功能划分,存在两类 > > profile 类: 为交互式登录的shell提供配置 > > > 全局: /etc/profile , /etc/profile.d/\*.sh > > > 个人: ~/.bash\_profile > > > > 功能 : > > > > 1 、用于定义环境变量 > > > > 2 、运行命令或脚本 > > > > bashrc 类 :为非交互式登录的shell提供配置 > > > > 全局 :/etc/bashrc > > > > 个人 :~/.bashrc > > > > 功能: > > > > 1 、定义命令别名 > > > > 2 、定义本地变量 >[danger] shell 登录 > > 交互式登录 : > > 直接通过终端输入账号密码登录 > > 使用 “su - UserName ” 或 “su -l UserNa” 切换用户 > > 读取顺序: > > /etc/profile --> > > /etc/profile.d/\*.sh --> > > ~/.bash\_profile--> > > ~/.bashrc --> > > /etc/bashrc >[danger] 非交互式登录 > > su UserName > > 图形界面下打开的终端 > > 执行脚本 > > 读取顺序: > > ~/.bashrc --> > > /etc/bashrc --> > > /etc/profile.d/\*.sh >[warning] 编辑配置文件定义的新配置的生效方式: > * 重新启动shell进程 > * 使用source或.命令进程