我的系统ubuntu 装了个intel c compiler 然后想把路径加入到.bash_profile中去 加入了后重新启动还是不起作用 在命令行下输入$PATH 结果:bash: /usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin/X11: /usr/games: No such file or directory 我把自己加的那行去掉,然后再输入$PATH,得到的和上面还是一样 不知道是什么问题
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs unset USERNAME umask 022 export EDITOR=vi export TERM=xterm export TMPDIR=/tmp # Setup installation environment export ORACLE_SID=TelPostDB export ORACLE_BASE=/oracle export ORACLE_HOME=$ORACLE_BASE/product/8.1.7 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/i386...
我在脚本头部加入 source ~/.bash_profile 在cronjob运行的时候 出现 line 1: //.bash_profile: No such file or directory root 下运行脚本无错。。应该咋整呀。。小弟是在比较菜。。请指点一下哈
我的.bash_profile为: unset USERNAME export ORACLE_BASE=/u01/app/oracle/oracle export ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_2 export ORACLE_SID=orcl umask 022 export DISPLAY=192.168.0.246:0.0 然后执行 . .bash_profile 然后执行 export $ORACLE_SID 没有输出 执行 export ORACLE_BASE 和 export ORACLE_BASE 都是说not a valid identifier 我看了下 文件夹都是存在的,为什么会这样呢?
以前登陆linux都是先LOGIN一个用户后然后SU到ROOT 直接打ROOT不能登陆的 现在这个用户每次登陆后提示 .bash_profile: Permission denied 虽然之后仍旧可以切换ROOT 但是都是在TELNET环境下 主机的X WINDOW的登陆窗口现在就没办法了
小弟在redhat9上安装oracle 9.0.2i,在修改环境变量时遇到了一个不解问题。有的资料上说需要修改.bashrc file,而有的文件上说要修改.bash_profile file,而我找到这两个file,里面都是相同的内容。 请问大家这两个文件具体是作什么用的?有没有区别?先谢过了! :oops:
I'm trying to edit the user profile for root user but its looks like it doesn't work. for example, I wrote: c () { cleae } by right, it should work right? I tried in AIX is ok. Please advise