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 M2_HOME=/usr/local/maven/maven root directory
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?