I want to know more about the /etc/profile file in Linux.
What is the use of /etc/profile file?
The profile file:
Is very import file in Linux system. This file is used to set the system wide environment variable. If you set any variable in this file it will be available for all the users of the system.
You can use the vi editor in Linux terminal to do so:
Then add variable of choice.
For example to set system wide JAVA_HOME you can add following line:
check one real example at: