Linked Questions

17 votes
4 answers
74k views

ANACONDA - I have to type export PATH=~/anaconda3/bin:“$PATH” everytime I rerun the terminal [duplicate]

Whenever I open a terminal, I have to write export PATH=~/anaconda3/bin:$PATH to use any feature of anaconda I want a persistent path.
Vitor Abella's user avatar
  • 7,537
8 votes
2 answers
17k views

Setting permanent export EDITOR to nano for all future sessions [duplicate]

Every time I SSH into my AWS, I am changing editor to nano. Is there a command to run that will change it to nano for all future instances a well?
Vantage's user avatar
  • 81
4 votes
1 answer
30k views

Ubuntu 14.04: setting environment variables [duplicate]

I need set environment variables for Android Studio project EVERY TIME when reboot or close terminal. (Ubuntu 14.04) For setting variables I use: export KEYSTORE_NAME=/home/anna/Documents/keys/NAME....
Anna's user avatar
  • 41
0 votes
1 answer
5k views

How do I export a variable to the `sh` shell? [duplicate]

Calling export MYVAR=/path/to/whatever from .bashrc obviously works for bash but not for the sh shell. Unfortunately, the Matlab launcher seems hell-bent on using sh and not bash. As such, the ...
Louis Thibault's user avatar
2 votes
1 answer
4k views

How to configure environment variables in Ubuntu? [duplicate]

My environment variables are correct? What is the correct way to use them in Ubuntu? I put them at the end of .bashrc file or edit the end of /etc/environment to able to use the $JAVA_HOME and $...
ricardoramos's user avatar
0 votes
3 answers
2k views

Run .bashrc commands without opening a terminal [duplicate]

I have been editing my .bashrc file to run some commands, such as appending directories to the PATH variable. However, from my knowledge, .bashrc is only executed when a terminal is opened. (Correct......
Karnivaurus's user avatar
  • 1,024
0 votes
1 answer
3k views

Which config file has my path variable? [duplicate]

So in my "the linux command line" book, it says this "The PATH variable is often (but not always, depending on the distribution) set by the /etc/profile startup file and with this code: PATH=$PATH:...
user avatar
1 vote
0 answers
2k views

Setting JAVA environment variable [duplicate]

I am setting up new Ubunut machine. Stuck on setting up Java environment variable. I have tried all possible way and whatever solution I found here. None of them worked. It is still giving me blank ...
pixelngrain's user avatar
2 votes
0 answers
478 views

How to set environment variables for GUI program? [duplicate]

I am using texstudio, a latex editor, on Ubuntu 14.04. When I start it from bash $ texstudio, and click the compile button, it works fine. However, if I start it by clicking the icon in the launcher, ...
DrizzleX's user avatar
  • 375
1 vote
0 answers
277 views

What is the proper location for user defined environment variables? [duplicate]

What is the proper location for user defined environment variables in Ubuntu? My first guess would be ~/.profile. Ubuntu already creates that file which conditionally sources ~/.bashrc and does some ...
Uyghur Lives Matter's user avatar
1 vote
0 answers
60 views

Is there any difference in setting path for golang, python or java in ubuntu? [duplicate]

In some tutorials path is set in ~/.profile however in some other tutorials they use etc/path or ~/.bashrc, can you explain whats the difference and how it works in linux ubuntu. I am sorry for such a ...
Anam Nizami's user avatar
1 vote
0 answers
39 views

Environment Variable for PYTHONPATH [duplicate]

I have joined my first open source project, and with these projects, obviously come packages containing modules. Before I delve in, this is the file structure of the project: -Opensource-Project ...
Bryan's user avatar
  • 11
0 votes
0 answers
27 views

RubyMine doesn't recognize user created environment variables [duplicate]

TLDR: Basically RubyMine does not recognize any user created environment variable when launched from a desktop entry, but when launched from console (using $ mine) it can recognize all the environment ...
Burak Kaymakci's user avatar
182 votes
8 answers
790k views

How do I set environment variables?

I'm trying to set up Apache Tomcat on my pc, and it wants me to set up an environment variable for CATALINA_HOME. Does any know how to do this?
jumpnett's user avatar
  • 5,965
3 votes
1 answer
13k views

Cannot set an environment variable using a Bash script [duplicate]

I want to set an environment variable from a bash script that I wrote. So I created a bash script and called it set.sh. Its content is as follows: #!/bin/bash export DEV_SRC="/home/m/mydata/...
mans's user avatar
  • 189

15 30 50 per page