时间:2025-02-03 02:06:53
linux profile文件环境变量配置
1. profile 文件。profile 文件位于/etc/目录下 /etc/profile , 当登入系统时候获得一个 shell 进程时,其读取环境profile 文件时候会读取,/etc/bash.bashrc,/etc/profile.d 文件下配置的sh文件,所以我们也可以在profile.d 和bash.bashrc 目录下创建sh文件,配置环境变量
2. bashrc。bashrc 文件用于配置函数或别名。bashrc 文件有两种级别:
3. bash_profile。bash_profile只对单一用户有效,文件存储位于~/.bash_profile,该文件是一个用户级的设置,可以理解为某一个用户的 profile 目录下。
《linux profile 设置环境变量》不代表本网站观点,如有侵权请联系我们删除
精彩推荐
点击排行