Phenomena and background of the problem
Not long ago, I bought a new notebook, installed centos stream 9, downloaded jdk18, installed maven, and performed the following operations in order to set environment variables for jdk and maven
**nano /etc/profile.d/customized_variables.sh **
The editing content of the .sh file is roughly as follows
export JAVA_HOME=/usr/java/jdk root directory
export CLASSPATH=.:$JAVA_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$PATH
export M2_HOME=/usr/local/maven/maven root directory
export PATH=$M2_HOME/bin:$PATH
After editing and saving, I restarted the system. As a result, after booting up, I couldn't find all kinds of applications on the desktop. The settings menu in the upper right corner of the desktop also disappeared. The most difficult thing is that the command line interface Terminal cannot be opened., the shortcut keys previously set for Terminal are useless, the whole situation is as follows:
Have you ever encountered this situation?How to solve it?
版权声明
本文为[CSDN q&a]所创,转载请带上原文链接,感谢
https://cdmana.com/2022/218/202207301641018831.html