noddy asked this 2 years ago

How to set environment variables in Linux?

How to set environment variables like PATH? How to do this from shell and how to make it available permanently? Is the command same for various distributions?


Remy Pereira 2 years ago
1 like

To add /home/newpath/bin to PATH

export PATH=${PATH}:/home/newpath/bin

 to PATH,