ubuntu set environment variables permanent

1, increase the environment variable root privileges, and permanent

      

    Directly into the command cd root / ubuntu: ~ # this directory

   

    

 

 

   Use vim to open the file .bsahrc

   

   In the bottom insertion export PATH = "" this path, here to remember, to the existing PATH path added to the list, and then written on the back and then want to add. 

  

   

 

 

 

Finally, the implementation of source .bashrc

Whether restart operations or other environmental variables, root privileges are present.

 

After the restart to take effect in all other sub-accounts.

 

Guess you like

Origin www.cnblogs.com/132818Creator/p/12565107.html