【报错解决】-bash: export: `-8‘: not a valid identifier 不是有效的标识符

现象

一登陆就提示-bash: export: `-8': not a valid identifier 不是有效的标识符

问题出现的原因

设置字符集时多写了空格

root@db1 \~# cat >>/etc/profile<<EOF

export LANG=en_US.UTF -8(-8前不应有空格)

EOF

解决方法

cd /etc

vi profile

把export带有-8的那行的空格删掉

相关推荐
却道天凉_好个秋19 天前
HEVC(八):Profile、Level和Tier
hevc·level·profile·tier
却道天凉_好个秋3 个月前
音视频学习(九十八):Profile
学习·音视频·profile
qq_232045576 个月前
pom.xml读本地Maven配置文件
maven·profile·snakeyaml·profiles·grovvy
alwaysrun8 个月前
Rust编译参数与优化控制
rust·cargo·rustc·profile·strip·lto
bcbobo21cn1 年前
初步了解Linux etc/profile文件
linux·运维·服务器·shell·profile
不修×蝙蝠1 年前
SpringBoot 第一课(Ⅲ) 配置类注解
java·spring boot·spring·bean·propertysource·profile·importresource
hhhcbw2 年前
Visual Studio2022 Profile 工具使用
visual studio·性能分析·profile
太自由2 年前
SpringBoot之Profile的两种使用方式
java·spring boot·后端·profile·springboot多环境配置·profile注解
观测云2 年前
APM Profile 在系统可观测体系中的应用
apm·可观测性·profile
小小码虫2 年前
salesforce vscode 获取profile metadata所有配置内容
vscode·编辑器·salesforce·metadata·profile