码迷,mamicode.com
首页 > 其他好文 > 详细

~/.bash_profile

时间:2019-02-01 11:26:41      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:配置   登录   specific   ecif   path   专用   start   nbsp   spec   

每个用户都可使用 ~/.bash_profile 文件输入专用于自己使用的 shell 信息,~ 表示用户的家目录,如 root 用户就是 /root/.bash_profile
当用户登录 shell 时就执行该文件,该文件仅仅执行一次,默认情况下,该文件设置一些环境变量,执行用户的 .bashrc 文件,默认配置如下:

[root@localhost ~]$ cat /root/.bash_profile 
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH

 

 

 

 

 

 

 

     

~/.bash_profile

标签:配置   登录   specific   ecif   path   专用   start   nbsp   spec   

原文地址:https://www.cnblogs.com/pzk7788/p/10344886.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!