This question has already been answered:
- XUBUNTU 3 response variables are not saved.
Hello, I recently began to master this OS. If in Windows it was clear where to write environment variables (for java, gradle and ant), then in Ubuntu I had difficulties. The anta documentation says that you need to use the export command, but then after the session ends, this variable flies. I understand that in order to set a variable in the env "for good" you need to specify it in a certain bash. But I didn’t really find a step-by-step instruction on the network (although I might have asked Google wrong) about which command to write in order to log in to bash and set the necessary variables. Please explain how to do this?