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

现象

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

问题出现的原因

设置字符集时多写了空格

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

解决方法

cd /etc

vi profile

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

相关推荐
却道天凉_好个秋18 天前
音视频学习(九十八):Profile
学习·音视频·profile
qq_232045573 个月前
pom.xml读本地Maven配置文件
maven·profile·snakeyaml·profiles·grovvy
alwaysrun5 个月前
Rust编译参数与优化控制
rust·cargo·rustc·profile·strip·lto
bcbobo21cn9 个月前
初步了解Linux etc/profile文件
linux·运维·服务器·shell·profile
不修×蝙蝠1 年前
SpringBoot 第一课(Ⅲ) 配置类注解
java·spring boot·spring·bean·propertysource·profile·importresource
hhhcbw1 年前
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
G皮T2 年前
【Maven】Maven 基础教程(三):build、profile
java·maven·build·profile