这个问题一般就是.bash_profile 文件内容错误,里面内容没加注释之内的,vi .bash_profile打开文件检查一下,然后:wq!保存退出 我的错误就是红圈处没有注释造成的 ...
今天有一同事安装了ORACLE后,在切换账号时遇到错误提示 bash: .bash profile: command not found 。如下所示 root GLETestLinux su oracle bash: .bash profile: command not found oracle GLETestLinux more .bash profile .bash profile Get ...
2015-01-21 23:01 0 2439 推荐指数:
这个问题一般就是.bash_profile 文件内容错误,里面内容没加注释之内的,vi .bash_profile打开文件检查一下,然后:wq!保存退出 我的错误就是红圈处没有注释造成的 ...
由于在.bash_profile配置路径导致终端部分命令失效 使用 open .bash_profile vim ~/.bash_profile 都无效 解决方法: 打开访达,前往文件夹~/.bash_profile 双击.bash_profile文件,查看配置路径,由于配置 ...
说说配置环境变量的方法: vim ~/.bash_profile 进入配置文件 添加路径例如: PATH=$PATH:\/Users/linyue/mywork/script:\ 保存后退出,source ~/.bash_profile,执行生效的指令 由于我每次关闭 ...
说说配置环境变量的方法: vim ~/.bash_profile 进入配置文件 添加路径例如: PATH=$PATH:\/Users/linyue/mywork/script:\ 保存后退出,source ~/.bash_profile,执行生效的指令 由于我每次关闭 ...
1、打开Terminal(终端) 2、输入:vi ~/.bash_profile 3、设置PATH:export PATH=/mongodb/bin:$PATH 4、输入::wq //保存并退出vi 5、修改立即生效:source ~/.bash_profile ...
1.Debian默认的shell是Bash, 1.1 命令行 和 ssh 登录 ,首先读入 /etc/profile,这是对所有用户都有效的配置;然后依次寻找下面三个文件,这是针对当前用户的配置。 ~/.bash_profile ~/.bash ...
全局的是在/etc目录下(/etc/profile)用户个人的是在用户的家目录下(~/.profile) 查看: 全局:cat /etc/profile 个人:cat ~/.bash_profile 编辑: 全局:vi /etc/profile ...
localhost:test jerry$ open .bash_profile The file /Users/je/Desktop/test/.bash_profile does not exist. localhost:test je$ open .bash_profile ...