Remember to save before closing the text editor □ If ~/.profile file already exists then I recommend to add the following commands to the end of the ~/.profile file. Okay, now that you have opened up ~/.profile file in your text editor, you need to add the following commands. You can specify the exact order in the ~/.profile file.Ĭreate the ~/. They are read when the shell starts up, in a specific order. They are a set of instructions which are executed before loading your shell environment. ~/.profile is nothing but a config file to set up your shell environment. Shells may or may not have configuration files. So when you start Terminal, it loads a shell – in our case, bash. NOTE: (Usually) there is no ~/.profile by default. No! If you want the configuration to be persistent, then you will have to add the command to your ~/.profile file. PLEASE NOTE: This ONLY sets JAVA_HOME for that particular instance of bash.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |