Question: Is Export Permanent Linux?
Contents How Do I Permanently Export an Environment Variable in Linux? to Make the Change Permanent, Enter the Command Path=$Path: /Opt/Bin into Your Home...
Contents
How do I permanently export an environment variable in Linux?
To make the change permanent, enter the command PATH=$PATH:/opt/bin into your home directory’s . bashrc file. When you do this, you’re creating a new PATH variable by appending a directory to the current PATH variable, $PATH .
Must Read
How do I permanently export a path in Linux?
I think the most elegant way is:
- Add this in the ~/. bashrc file. Run this command: gedit ~/.bashrc. Add your path inside it: export PATH=$PATH:/opt/node/bin.
- source ~/.bashrc.