Solaris10如何永久的更改path变量
展开全部
在 /.profile 中设定:
-bash-3.00# cp /etc/skel/local.profile /.profile
-bash-3.00# vi /.profile
#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "@(#)local.profile 1.10 01/06/23 SMI"
stty istrip
PATH=/usr/bin:/usr/sbin:/usr/ucb:/etc:.
export PATH
-bash-3.00# source /.profile
-bash-3.00# echo $PATH
/usr/bin:/usr/sbin:/usr/ucb:/etc:.
-bash-3.00#
-bash-3.00# cp /etc/skel/local.profile /.profile
-bash-3.00# vi /.profile
#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "@(#)local.profile 1.10 01/06/23 SMI"
stty istrip
PATH=/usr/bin:/usr/sbin:/usr/ucb:/etc:.
export PATH
-bash-3.00# source /.profile
-bash-3.00# echo $PATH
/usr/bin:/usr/sbin:/usr/ucb:/etc:.
-bash-3.00#
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询