<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://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>http://jackxiang.com/post//</link>
<title><![CDATA[Linux bashrc和profile的用途和区别]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Unix/LinuxC技术]]></category>
<pubDate>Thu, 10 Mar 2016 10:53:17 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	<br/>对于个别用户的启动配置文件<br/>用户HOME（家）目录/.bashrc<br/><br/><br/>head-1~/.bashrc<br/><br/><br/>#~/.bashrc:executedbybash(1)fornon-loginshells.<br/><br/><br/>用户HOME（家）目录/.profile<br/><br/><br/>head-1~/.profile<br/><br/><br/>#~/.profile:executedbyBourne-compatibleloginshells.<br/><br/><br/>• 对于全部用户的启动配置文件<br/><br/><br/>head-1/etc/bash.bashrc<br/><br/><br/>#System-wide.bashrcfileforinteractivebash(1)shells.<br/><br/><br/>head-2/etc/profile<br/><br/><br/>#/etc/profile:system-wide.profilefilefortheBourneshell(sh(1)<br/><br/><br/>#andBournecompatibleshells(bash(1),ksh(1),ash(1),...).<br/><br/><br/>• bashrc和profile的差异<br/><br/><br/>从上面的英文描述可以知道，bashrc和profile的差异在于：<br/><br/><br/>1.bashrc是在系统启动后就会自动运行。<br/><br/><br/>2.profile是在用户登录后才会运行。<br/><br/><br/>3.进行设置后，可运用sourcebashrc命令更新bashrc，也可运用sourceprofile命令更新profile。PS：通常我们修改bashrc,有些linux的发行版本不一定有profile这个文件，本文用的系统是Ubuntu15.10<br/><br/><br/>4./etc/profile中设定的变量(全局)的可以作用于任何用户，而~/.bashrc等中设定的变量(局部)只能继承/etc/profile中的变量，他们是&quot;父子&quot;关系。<br/><br/><br/>• 补充介绍<br/><br/><br/>另外，需要补充说明介绍bashrc相关的几个文件：<br/><br/><br/>~/.bash_profile: 每个用户都可使用该文件输入专用于自己使用的shell信息，当用户登录时，该文件仅仅执行一次!默认情况下,他设置一些环境变量,执行用户的.bashrc文件。<br/><br/><br/>~/.bash_logout: 当每次退出系统(退出bash shell)时，执行该文件。<br/><br/><br/>~/.bash_profile 是交互式、login方式进入bash运行的，~/.bashrc是交互式non-login方式进入bash运行的，通常二者设置大致相同，所以通常前者会调用后者。<br/><br/><br/>原文来自：https://www.ttlsa.com/linux/linux-bashrc-and-profile/
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] Linux bashrc和profile的用途和区别]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>