非常风气网www.verywind.cn
首页
加载bash_profile
Linux:/etc/
profile
是什么时候
加载
的呢?求解
答:
刚登录Linux时,首先启动 /etc/profile 文件,然后再启动用户目录下的 ~/.
bash_profile
、~/.bash_login或 ~/.profile文件中的其中一个,执行的顺序为:~/.bash_profile、 ~/.bash_login、~/.profile。如果 ~/.bash_profile文件存在的话,一般还会执行 ~/.bashrc文件。因为在 ~/.bash_profile文件...
Mac下打开./
bash_profile
答:
进入当前用户的home目录 编辑.
bash_profile
文件 这时 ./bash_profile 就会打开 可以在后面加入要写入的环境变量(注意:从后往前读,注意覆盖)更新刚配置的环境变量
linux 用户如何自动执行.
bash_profile
文件?
答:
.
bash_profile
文件是bash shell的用户环境配置文件,位于用户的主目录下。其中.bash_profile是最重要的一个配置文件.用户每次登录系统时都会被读取,里面的所有 命令都会被bash执行。还可以使用如下语句手动执行:source .bash_profile
Linux系统环境变量
加载
过程
答:
bash首先执行/etc/profile脚本,/etc/profile脚本先依次执行/etc/profile.d/*.sh,随后bash会执行用户主目录下的.
bash_profile
脚本,.bash_profile脚本会执行用户主目录下的.bashrc脚本,而.bashrc脚本会执行/etc/bashrc脚本至此,所有的环境变量和初始化设定都已经
加载
完成。bash随后调用terminfo和inputrc,完...
...soruce .
bash_profile
才可以使用sqlplus,导入oracle环境
答:
su – oracle vi $HOME/.
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 ORACLE_BASE=/usr/u01/app/oracle export ORACLE_HOME=$...
Mac执行了source ~/.
bash_profile
环境变量不生效
答:
自己在 ~/.
bash_profile
中配置环境变量, 可是每次重启终端后配置的不生效.需要重新执行 : $source ~/.bash_profile 发现zsh
加载
的是 ~/.zshrc文件,而 ‘.zshrc’ 文件中并没有定义任务环境变量。解决办法 在~/.zshrc文件最后,增加一行:source ~/.bash_profile ...
Linux_
bash_profile
无法生效.md
答:
在 ~/.
bash_profile
设置了环境变量,且使用了 source ~/.bash_profile 使得当前窗口的环境变量生效, 但是关闭终端,重启后,环境变量不再生效.说明当前的shell的不是bash.ps: > 使用以下命令查看当前shell 我们使用的shell是zsh,不会自动
加载
~/.bash_profile ,而是自动加载 .zprofile 文件。这里可以...
linux 新建用户后,在用户目录下没有.
bash_profile
文件生成
答:
1、使用root用户查看新建用户的“家”目录和shell类型:cat /etc/passwd。而且,只有shell是bash,才会需要.
bash_profile
这个配置文件,如果是csh或者tcsh的话,配置文件是.cshrc或者.csh_aliases。2、输入命令:ls -la /etc/skel/ ,查看这个目录下有没有.bash_profile文件。一般新建用户后,系统会把...
windows下 .
bash_profile
在哪
答:
.
bash_profile
通常在linux、unix下才有的。windows下,首先你下载一个cywin(cygwin是一个在windows平台上运行的unix模拟环境),然后打开它,就可以设置bash的profile了。http://baike.baidu.com/view/3968.htm
如何让linux
加载
当前目录的动态库?
答:
LD_LIBRARY_PATH=./\x0d\x0a\x0d\x0a2、让当前帐号以后都优先
加载
当前目录的动态库\x0d\x0a修改~/.
bash_profile
在文件末尾加上两行: LD_LIBRARY_PATH=./ 和 export LD_LIBRARY_PATH \x0d\x0a\x0d\x0a3、让所有帐号从此都优先加载当前目录的动态库\x0d\x0a修改/etc/profile在...
1
2
3
4
5
6
7
8
9
10
涓嬩竴椤
灏鹃〉
你可能感兴趣的内容
.bash_profile
没有bash_profile
bash_profile文件在哪
修改bash_profile
bash profile生效
bashprofile不生效
查看bashprofile文件
source profile
linux profile
本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
©
非常风气网