免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4069 | 回复: 5
打印 上一主题 下一主题

[安装配置] aix 怎么设置 PATH [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-09-04 12:50 |只看该作者 |倒序浏览
PATH 这个环境变量 保存在哪里的啊?


要永久性的改, 不要只应用到一个SESSION

还不要在/.profile 里设置

论坛徽章:
0
2 [报告]
发表于 2008-09-04 13:37 |只看该作者
/etc下设置啊

论坛徽章:
0
3 [报告]
发表于 2008-09-04 13:47 |只看该作者
原帖由 胖胖猪 于 2008-9-4 13:37 发表
/etc下设置啊





# cat /etc/profile
# @(#)27        1.20  src/bos/etc/profile/profile, cmdsh, bos530 8/9/94 12:01:38
# IBM_PROLOG_BEGIN_TAG
# This is an automatically generated prolog.
#
# bos530 src/bos/etc/profile/profile 1.20
#
# Licensed Materials - Property of IBM
#
# (C) COPYRIGHT International Business Machines Corp. 1989,1994
# All Rights Reserved
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
# IBM_PROLOG_END_TAG
#
# COMPONENT_NAME: (CMDSH) Shell related commands
#
# FUNCTIONS:
#
# ORIGINS: 3, 26, 27
#
# (C) COPYRIGHT International Business Machines Corp. 1989, 1994
# All Rights Reserved
# Licensed Materials - Property of IBM
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
#
################################################################

# System wide profile.  All variables set here may be overridden by
# a user's personal .profile file in their $HOME directory.  However,
# all commands here will be executed at login regardless.

trap "" 1 2 3
readonly LOGNAME

# Automatic logout, include in export line if uncommented
# TMOUT=120

# The MAILMSG will be printed by the shell every MAILCHECK seconds
# (default 600) if there is mail in the MAIL system mailbox.
MAIL=/usr/spool/mail/$LOGNAME
MAILMSG="[YOU HAVE NEW MAIL]"

# If termdef command returns terminal type (i.e. a non NULL value),
# set TERM to the returned value, else set TERM to default lft.
TERM_DEFAULT=lft
TERM=`termdef`
TERM=${TERM:-$TERM_DEFAULT}

# If LC_MESSAGES is set to "C@lft" and TERM is not set to "lft",
# unset LC_MESSAGES.
if [ "$LC_MESSAGES" = "C@lft" -a "$TERM" != "lft" ]
then
        unset LC_MESSAGES
fi

export LOGNAME MAIL MAILMSG TERM

trap 1 2 3
#


这里改吗? 确定?

论坛徽章:
0
4 [报告]
发表于 2008-09-04 13:57 |只看该作者
看看 /etc/environment的内容先

论坛徽章:
0
5 [报告]
发表于 2008-09-04 14:01 |只看该作者
原帖由 meilixueshan 于 2008-9-4 13:57 发表
看看 /etc/environment的内容先



恩 找到了 谢谢

论坛徽章:
0
6 [报告]
发表于 2008-09-04 17:00 |只看该作者
如果是单独用户的话,可在其主目录下.profile里设置
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP