登录Shell依次执行的配置文件(CentOS6.4):
/etc/profile ->.bash_profile -> .bashrc -> /etc/bashrc
非登录交互式Shell依次执行的配置文件:
~/.bashrc->/etc/bashrc #扩展 /etc/profile #系统全程的初始化文件,为登录的shell所执行 ~/.bash_profile #个人的初始化文件,为登录的shell所执行 ~/.bashrc #个人的交互式shell的起始文件 ~/.bash_logout #个人登录shell的清理文件,当登录shell退出时执行
cron任务计划中的PATH变量:
crontab -e 编辑的任务计划: PATH=/usr/bin:/bin 主目录为用户的根目录
/etc/crontab的任务计划的PATH变量: /sbin:/bin:/usr/sbin:/usr/bin 主目录为/
暂无评论
写评论