profile,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part 2   by:授客 QQ:1033553122 --------------------接Part 1------------------- B.   当bash以interactive shell方式启动时: 如果存在~/.bashrc,bash从~/.bashrc中读取命令并执行 注意: 1.通过--rcfile  file选项可强制ba…
profile,bashrc,.bash_profile,.bash_login,.profile,.bashrc,.bash_logout浅析 Part 1   by:授客 QQ:1033553122   (CentOS-6.0-x86_64-bin-DVD1.iso为例) 1.  普通用户 [root@localhost home]# useradd test [root@localhost home]# passwd test ... passwd: all authentication…
profile bashrc bash_profile之间的区别和联系 博客分类: Linux   执行顺序为:/etc/profile -> (~/.bash_profile | ~/.bash_login | ~/.profile) -> ~/.bashrc -> /etc/bashrc -> ~/.bash_logout 关于各个文件的作用域,在网上找到了以下说明: (1)/etc/profile: 此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行,并从/…
/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/profile.d目录的配置文件中搜集shell的设置. /etc/bashrc:为每一个运行bash shell的用户执行此文件.当bash shell被打开时,该文件被读取. ~/.bash_profile:每个用户都可使用该文件输入专用于自己使用的shell信息,当用户登录时,该文件仅仅执行一次!默认情况下,他设置一些环境变量,执行用户的.bashrc文件. ~/.bashrc:该…
1. 在登录Linux时要执行文件的过程如下: 在刚登录Linux时, 首先启动 /etc/profile 文件, 然后再启动用户目录下的 ~/.bash_profile. ~/.bash_login或 ~/.profile文件中的其中一个,用户主目录下文件的执行的顺序为: ~/.bash_profile -> ~/.bash_login -> ~/.profile. 如果 ~/.bash_profile文件存在的话,一般还会执行 ~/.bashrc文件. 因为在 ~/.bash_profil…
原文网址:http://blog.csdn.net/ithomer/article/details/6322892 在登录Linux时要执行文件的过程如下:在刚登录Linux时,首先启动 /etc/profile 文件,然后再启动用户目录下的 ~/.bash_profile. ~/.bash_login或 ~/.profile文件中的其中一个, 执行的顺序为:~/.bash_profile. ~/.bash_login. ~/.profile. 如果 ~/.bash_profile文件存在的话,…
环境变量是和Shell紧密相关的,用户登录系统后就启动了一个Shell.对于Linux来说一般是bash,但也可以重新设定或切换到其它的 Shell.对于UNIX,可能是CShelll.环境变量是通过Shell命令来设置的,设置好的环境变量又可以被所有当前用户所运行的程序所使用.对于bash这个Shell程序来说,可以通过变量名来访问相应的环境变量,通过export来设置环境变量.下面通过几个实例来说明.1)etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被…
关于登录linux时,/etc/profile.~/.bash_profile等几个文件的执行过程. 在登录Linux时要执行文件的过程如下: 在刚登录Linux时,首先启动 /etc/profile 文件,然后再启动用户目录下的 ~/.bash_profile. ~/.bash_login或 ~/.profile文件中的其中一个,执行的顺序为:~/.bash_profile. ~/.bash_login. ~/.profile.如果 ~/.bash_profile文件存在的话,一般还会执行 ~…
分类: linux 2015-03-13 16:24 1572人阅读 评论(0) 收藏 举报linuxprofile关于登录linux时,/etc/profile.~/.bash_profile等几个文件的执行过程. 在登录Linux时要执行文件的过程如下: 在刚登录Linux时,首先启动 /etc/profile 文件,然后再启动用户目录下的 ~/.bash_profile. ~/.bash_login或 ~/.profile文件中的其中一个,执行的顺序为:~/.bash_profile. ~…
/etc/profile.~/.bash_profile等几个文件的执行过程  摘自:http://blog.chinaunix.net/uid-14735472-id-3190130.html 分类: LINUX 2012-04-26 17:44:55   http://blog.chinaunix.net/uid-346158-id-2130833.html 关于登录linux时,/etc/profile.~/.bash_profile等几个文件的执行过程. 在登录Linux时要执行文件的过…