How to permanently set an environment variable

Simone

I am completely new to Ubuntu, and I would permanently set an environment variable. I have read here that I have to set ~/.profile, but I don't know how to apply it. In my case I would permanently set export PATH="/home/name/anaconda/bin:$PATH", how could I do?

Gunnar Hjalmarsson
  • Open a terminal window with Ctrl+Alt+T.
  • Open the file for editing with

    gedit ~/.profile
    
  • Add the command to the bottom of the file.

  • Save and close gedit.

  • Log out and log in again.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to set environment variable permanently?

From Dev

how to permanently set environment variable for boot2docker

From Dev

how to permanently set environment variable for boot2docker

From Dev

How do I set a user environment variable? (permanently, not session)

From Dev

How do I permanently set an environment variable for a specific Flatpak application?

From Dev

How to set Environment variables permanently in C#

From Dev

How do I permanently add an environment variable?

From Dev

Permanently remove an environment variable

From Dev

Set DJANGO_SETTINGS_MODULE as an Environment Variable in Windows permanently

From Dev

Set up java environment variable value using bat command permanently

From Dev

Set DJANGO_SETTINGS_MODULE as an Environment Variable in Windows permanently

From Dev

Permanently set DB2CLP environment variable

From Dev

How to set environment variables permanently in Amazon Linux 2

From Dev

How to permanently set Environment Variables for the Visual Studio command line

From Java

How to set GOPRIVATE environment variable

From Dev

How to set an integer as a environment variable?

From Dev

How to set environment variable in java

From Dev

How to set the environment variable in tox?

From Dev

How to permanently set an environmental variable in an existing docker container?

From Java

Setting PATH environment variable in OSX permanently

From Dev

Setting user environment variable permanently, outside shell?

From Dev

How can I permanently add a new path to the 'PATH' environment variable of the current user on Win 7?

From Dev

How to set the environment variable of zerobrane studio

From Dev

appveyor - how to set environment variable using %HOMEPATH%

From Java

How to set child process' environment variable in Makefile

From Dev

How do I set an environment variable?

From Dev

How to set environment variable for gulp-jasmine

From Dev

How to set environment variable using Chef?

From Dev

How to set system environment variable in C#?

Related Related

  1. 1

    How to set environment variable permanently?

  2. 2

    how to permanently set environment variable for boot2docker

  3. 3

    how to permanently set environment variable for boot2docker

  4. 4

    How do I set a user environment variable? (permanently, not session)

  5. 5

    How do I permanently set an environment variable for a specific Flatpak application?

  6. 6

    How to set Environment variables permanently in C#

  7. 7

    How do I permanently add an environment variable?

  8. 8

    Permanently remove an environment variable

  9. 9

    Set DJANGO_SETTINGS_MODULE as an Environment Variable in Windows permanently

  10. 10

    Set up java environment variable value using bat command permanently

  11. 11

    Set DJANGO_SETTINGS_MODULE as an Environment Variable in Windows permanently

  12. 12

    Permanently set DB2CLP environment variable

  13. 13

    How to set environment variables permanently in Amazon Linux 2

  14. 14

    How to permanently set Environment Variables for the Visual Studio command line

  15. 15

    How to set GOPRIVATE environment variable

  16. 16

    How to set an integer as a environment variable?

  17. 17

    How to set environment variable in java

  18. 18

    How to set the environment variable in tox?

  19. 19

    How to permanently set an environmental variable in an existing docker container?

  20. 20

    Setting PATH environment variable in OSX permanently

  21. 21

    Setting user environment variable permanently, outside shell?

  22. 22

    How can I permanently add a new path to the 'PATH' environment variable of the current user on Win 7?

  23. 23

    How to set the environment variable of zerobrane studio

  24. 24

    appveyor - how to set environment variable using %HOMEPATH%

  25. 25

    How to set child process' environment variable in Makefile

  26. 26

    How do I set an environment variable?

  27. 27

    How to set environment variable for gulp-jasmine

  28. 28

    How to set environment variable using Chef?

  29. 29

    How to set system environment variable in C#?

HotTag

Archive