<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>https://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>https://jackxiang.com/post//</link>
<title><![CDATA[[PATH设置]linux中profile的执行说明]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Wed, 10 Oct 2012 10:14:06 +0000</pubDate> 
<guid>https://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	（1）/etc/profile<br/>全局（公有）配置，不管是哪个用户，登录时都会读取该文件。<br/>（2）/ect/bashrc<br/>Ubuntu没有此文件，与之对应的是/ect/bash.bashrc它也是全局（公有）的，bash执行时，不管是何种方式，都会读取此文件。<br/>（3）~/.profile<br/>若bash是以login方式执行时，读取~/.bash_profile，若它不存在，则读取~/.bash_login，若前两者不存在，读取~/.profile。<br/>另外，图形模式登录时，此文件将被读取，即使存在~/.bash_profile和~/.bash_login。<br/>（4）~/.bash_login<br/>若bash是以login方式执行时，读取~/.bash_profile，若它不存在，则读取~/.bash_login，若前两者不存在，读取~/.profile。<br/>（5）~/.bash_profile<br/>Unbutu默认没有此文件，可新建。<br/>只有bash是以login形式执行时，才会读取此文件。通常该配置文件还会配置成去读取~/.bashrc。<br/>（6）~/.bashrc<br/>当bash是以non-login形式执行时，读取此文件。若是以login形式执行，则不会读取此文件。<br/>（7）~/.bash_logout<br/>注销时，且是longin形式，此文件才会读取。也就是说，在文本模式注销时，此文件会被读取，图形模式注销时，此文件不会被读取。<br/>下面是在本机的几个例子：<br/>1. 图形模式登录时，顺序读取：/etc/profile和~/.profile<br/>2. 图形模式登录后，打开终端时，顺序读取：/etc/bash.bashrc和~/.bashrc<br/>3. 文本模式登录时，顺序读取：/etc/bash.bashrc，/etc/profile和~/.bash_profile<br/>4. 从其它用户su到该用户，则分两种情况：<br/>（1）如果带-l参数（或-参数，--login参数），如：su -l username，则bash是lonin的，它将顺序读取以下配置文件：/etc/bash.bashrc，/etc/profile和~ /.bash_profile。<br/>（2）如果没有带-l参数，则bash是non-login的，它将顺序读取：/etc/bash.bashrc和~/.bashrc<br/>5. 注销时，或退出su登录的用户，如果是longin方式，那么bash会读取：~/.bash_logout<br/>6. 执行自定义的shell文件时，若使用“bash -l a.sh”的方式，则bash会读取行：/etc/profile和~/.bash_profile，若使用其它方式，如：bash a.sh， ./a.sh，sh a.sh（这个不属于bash shell），则不会读取上面的任何文件。<br/>7. 上面的例子凡是读取到~/.bash_profile的，若该文件不存在，则读取~/.bash_login，若前两者不存在，读取~/.profile。
]]>
</description>
</item><item>
<link>https://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] [PATH设置]linux中profile的执行说明]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>