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

profile和bash

时间:2015-09-08 12:32:43      阅读:183      评论:0      收藏:0      [点我收藏+]

标签:

I am reading about basic shell scripting from Linux Command Line and Shell Scripting Bible.

It says that the /etc/profile file sets the environment variables at startup of the Bash shell. The /etc/profile.d directory contains other scripts that contain application-specific startup files, which are also executed at startup time by the shell.

 bash窗口里看JAVA_HOME设置好了,但是./xxx总说没设置,原来是这个原因,运维tmd设置了java_home但是只导出了path,一直以为bash窗口里echo能看到就是没问题,最后发现是这么回事儿。

profile和bash

标签:

原文地址:http://www.cnblogs.com/jvava/p/4791148.html

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