How do I permanently export a path in Linux?

Alvin Le

Member
How do I permanently export a path in Linux?
Answer
I think the most elegant way is:
  1. Add this in the ~/. bashrc file. Run this command: gedit ~/.bashrc. Add your path inside it: export PATH=$PATH:/opt/node/bin.
  2. source ~/.bashrc.
 

Tìm kiếm

Back
Top