当你遇到 -bash: export: command not found 的错误时,这通常意味着 export 命令没有被正确识别。以下是一些可能的原因和相应的解决方法: 确认操作系统环境: 确保你正在使用的是类Unix系统(如Linux或macOS),因为 export 是Unix和类Unix系统(如bash shell)中的一个内置命令。如果你在使用Windows系统,默认情况下是...
报错如下图 -bash: Export: command not found 这个是由于修改的bash_profile文件引起的;解决方案:1、打开文件 $open ~/.bash_profile 2、检查并修改bash_profile文件内容 3、然后保存生效 $source .bash_profile 4、关闭终端重新开启就OK了 ...
-bash: “export: command not found -bash: “export: command not found 查看远程登录时候,会自行加载的几个文件(~/.bash_profile ~/.bashrc /etc/profile) [root@bigdata ~]#grepexport /root/. ./.bash_history .bash_profile .cshrc .tcshrc ../ .bash_logout .bashrc .ssh/.viminfo [root@bigd...
跟我的现象一样 应该是删了/root 目录下的文件 通过这样修复下应该就可以了,到你自己家目录拷贝bashrc和bash_profile 到/root目录即可 -bash-4.1# cd /home/shiwenzhao 我的家目录 -bash-4.1#cp ./.bashrc /root -bash-4.1#cp ./.bash_profile /root -bash-4.1#su - shiwenzhao...
-bash: export command not found -bash: export command not found 查找了半天参数,终于在.bash_profile 发现“export”拼写有问题 ,终于解决,做工作一定要细心 export TMP=/tmp export TMPDIR=$TMP export ORACLE_BASE=/u01/oracle export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1 ...
终端命令打开出现报错 -bash: Export: command not found 报错如下图 -bash: Export: command not found 这个是由于修改的bash_profile文件引起的; 解决方案: 1、打开文件 $open ~/.bash_profile 2、检查并修改bash_profile文件内容 3、然后保存生效 $source .bash_profile 4、关闭终端重新开启就OK了...