1.which java finds the executable file of java
2. As shown
3. Configure the /etc/profile file (ignore the first line of the screenshot)
4. Effective configuration file: source /etc/profile
1.which java finds the executable file of java
2. As shown
3. Configure the /etc/profile file (ignore the first line of the screenshot)
4. Effective configuration file: source /etc/profile