赞
踩
每次远程登录都会提示-bash: ‘export: command not found
-bash: ‘export: command not found
根据提示肯定是某个设置文件包含了特殊的中文符号,导致系统无法加载
查看远程登录时候,会自行加载的几个文件(~/.bash_profile ~/.bashrc /etc/profile)
cat .bashrc
发现最下面两行export外有引号且是中文符号,进行修改删除即可
vim .bashrc
- export PATH=~/anaconda2/bin:/root/anaconda3/bin:/root/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
- export PATH=~/anaconda3/bin:/root/anaconda3/bin:/root/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
参考文献:Linuxの远程登录工具访问Linux都会提示【-bash: “export: command not found】的问题处理...-CSDN博客
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。