ChinaUnix.net
相关文章推荐:

.profile 文件

各位大虾:我的UNIX系统中SYBASE用户的.profile文件没了。请问我该如何补救?谢谢 :shock: :shock: :shock:

by lwygrx - Sybase - 2004-03-16 23:32:41 阅读(1018) 回复(3)

相关讨论

本帖最后由 gamester88 于 2010-09-12 09:18 编辑 pathmunge () { if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then if [ "$2" = "after" ] ; then PATH=$PATH:$1 else PATH=$1:$PATH fi fi } (1)这里的$PATH是从哪里得到的? (2) if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then if [ "$2" = "after" ] ; 这句语句的作用?...

by gswen - Linux新手园地 - 2010-09-16 16:01:27 阅读(2349) 回复(12)

[free]# Path manipulation if [ "$EUID" = "0" ]; then pathmunge /sbin pathmunge /usr/sbin pathmunge /usr/local/sbin [/free]修改前 [free]# Path manipulation if [ "$EUID" = "0" ]; then pathmunge /sbin pathmunge /usr/sbin pathmunge /usr/local/sbin pathmunge /usr/sbin [/free] 修改后。。。 这样应该没有问题吧。。 我不懂C语言。。 但是看到这里 应该...

by chonaswd - Linux新手园地 - 2008-09-04 21:59:48 阅读(1480) 回复(5)

我希望 /usr/local/svn/bin 下的所有程序在任何目录下都能直接运行---想把这个路径加入到root的 /etc/profile 当中。 请问应该加到下图中的那一行? 第一个画红圈的行,还是第个画红圈的那一行?

by hoohoobjj - Linux新手园地 - 2008-03-19 14:28:51 阅读(1324) 回复(2)

不小心使用命令cat /dev/null > .bash_profile 结果启动后不能自动进入bash shell 将其他用户的profile加入 .bash_profile,其内容如下: # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:/HOME/bin export PATH unset USERNAME 但是每次进入root用户后出现提示:-bash: /root: is a directory 这是什么原...

by topgtian - Linux系统管理 - 2008-03-05 13:43:42 阅读(1776) 回复(0)

.bash_profile这个文件是干什么用的阿 ? 默认是没什么内容吧

by 123freebird - Linux新手园地 - 2007-12-06 16:13:45 阅读(1372) 回复(2)

问题:一个文件夹下有两个应用程序,需要设置用户A进入后直接运行A程序,用户B进入后直接运行B程序,请问如何编辑.profile? 菜鸟学习,请高手指教!

by youth_y - Linux新手园地 - 2007-11-08 17:37:41 阅读(7131) 回复(4)

$ pwd /etc $ vi profile 在这里加了些东西 :X 回车 出现文件只读提示如下, "profile" File is read only 应该怎么解决这问题,谢谢 在装oracle时改那profile时,我是用oracle用户登进去的,然后在/etc下的profile改它,也不知道profil是不是都在etc下?

by nczch - HP-UX - 2007-05-12 21:41:39 阅读(3486) 回复(5)

$ pwd /etc $ vi profile 在这里加了些东西 :X 回车 出现文件只读提示如下, \"profile\" File is read only 应该怎么解决这问题,谢谢 在装oracle时改那profile时,我是用oracle用户登进去的,然后在/etc下的profile改它,也不知道profil是不是都在etc下?

by nczch - HP-UX - 2007-05-12 21:41:39 阅读(4808) 回复(5)

请问,profile定义的变量是不是init进程初始化的变量啊?这样便于所有子进程使用这些变量,是这样吗?

by xxjoyjn - Shell - 2006-03-29 15:02:23 阅读(1012) 回复(1)

误删了.profile中某项之后,每次切换到notes用户时提示: # su - notes .profile[26]: tes/notesdata:/notes/lotus/notes/latest/ibmpow/res/C:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/notes/bin:/usr/bin/X11:/sbin:.: not found. .profile[27]: xport: not found. .profile[97]: xport: not found. 但Domino server还可以正常启动,但在.profile中以vi添加 PATH=tes/notesdata:/notes/lotus/notes/latest/ibmpow/res/C:/u...

by darklolo - AIX - 2004-11-15 14:07:17 阅读(951) 回复(0)