Vương Tuấn Khải
New member
How do I export an environment variable in terminal?
Answer
To set an environment variable everytime,
use the export command in the . bashrc file (or the appropriate initialization file for your shell). To set an environment variable from a script, use the export command in the script, and then source the script. If you execute the script it will not work.
Answer
To set an environment variable everytime,
use the export command in the . bashrc file (or the appropriate initialization file for your shell). To set an environment variable from a script, use the export command in the script, and then source the script. If you execute the script it will not work.