How to set PATH in MAC(Bash)

2008年8月4日 | 分类: 操作系统 | 标签:

Because when I try to modify the file record “PATH” of System,I’m not using root account. So I sufered a problem that I can’t override the file-profile. I rember that command sudo maybe work,so I typed:

sudo vi /etc/profile

after typed password, I can modify this file like a root account.It worked!! Good!

Then I added”:/opt/glassfish/bin”  after “PATH=’/bin:/sbin:/usr/bin:/usr/sbin’”

目前还没有任何评论.
注意: 评论者允许使用'@user:'的方式将自己的评论通知另外评论者。例如, ABC是本文的评论者之一,则使用'@ABC:'(不包括单引号)将会自动将您的评论发送给ABC。请务必注意user必须和评论者名相匹配(大小写一致)。