A Alvin Le Member Jan 17, 2022 #1 How do I permanently export a path in Linux? Answer 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.
How do I permanently export a path in Linux? Answer 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.