首页 > 系统服务 > 详细

Week 1 solved question: change environment by shell

时间:2016-01-14 12:41:23      阅读:143      评论:0      收藏:0      [点我收藏+]

How to change environment by using a shell?


e.g. 

For this laboratory we assume you‘re in the standard C or POSIX locale. The shell command locale should output LC_CTYPE="C" orLC_CTYPE="POSIX". If it doesn‘t, use the following shell command:

export LC_ALL=‘C‘

If I write a shell that contains this command, it won‘t work since the child shell only change it‘s own environment. 


I need to use:

. ./shellname  or

source ./shellname

Week 1 solved question: change environment by shell

原文:http://11122569.blog.51cto.com/11112569/1734826

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!