- 论坛徽章:
- 0
|
怎么向PATH中加入一个路径?
系统是solaris 8 \r\n\r\n我看了一下你说的那个文件,可是在哪加呢?\r\n\r\n文件内容如下:\r\n\r\n#ident \"@(#)profile 1.18 98/10/03 SMI\" /* SVr4.0 1.3 */\r\n\r\n# The profile that all logins get before using their own .profile.\r\n\r\ntrap \"\" 2 3\r\nexport LOGNAME PATH\r\n\r\nif [ \"$TERM\" = \"\" ]\r\nthen\r\n if /bin/i386\r\n then\r\n TERM=sun-color\r\n else\r\n TERM=sun\r\n fi\r\n export TERM\r\nfi\r\n\r\n# Login and -su shells get /etc/profile services.\r\n# -rsh is given its environment in its .profile.\r\n\r\ncase \"$0\" in\r\n-sh | -ksh | -jsh)\r\n\r\n if [ ! -f .hushlogin ]\r\n then\r\n /usr/sbin/quota\r\n # Allow the user to break the Message-Of-The-Day only.\r\n trap \"trap \'\' 2\" 2\r\n /bin/cat -s /etc/motd\r\n trap \"\" 2\r\n\r\n /bin/mail -E\r\n case $? in\r\n 0) \r\n echo \"You have new mail.\"\r\n ;;\r\n 2) \r\n echo \"You have mail.\"\r\n ;;\r\n esac\r\n fi\r\nesac\r\n\r\numask 022\r\ntrap 2 3 |
|