Linked Questions

10
votes
2answers
60k views

Setting persistent environment variable in CentOS 7 issue [duplicate]

I have been trying to set environment variables that would be saved upon reboot, but without success. When I set variables using the export or setenv command, as root or any other user, it gets ...
5
votes
2answers
31k views

changing an environment variable like PATH forever [duplicate]

Possible Duplicate: How do I set a user environment variable? (permanently, not session) To change the amount of PATH variable , I use : export PATH=... But when I close the terminal, the amount ...
4
votes
2answers
64k views

How to set environment variable JAVA_HOME that will be saved on exit? [duplicate]

Possible Duplicate: How do I set a user environment variable? (permanently, not session) I use Suse. First was installed jdk7, so JAVA_HOME remains like: /usr/java/jdk1.7.0_05/ After I have ...
0
votes
2answers
17k views

export PATH permanently [duplicate]

I have exported the PATH but once I switch to a different terminal or reboot Debian, $PATH is reset. Here are the steps I take: ~$ vim scripts.sh #!/bin/bash echo "Hello" I save it as mybash.sh and ...
2
votes
4answers
1k views

Update Linux Path permanently [duplicate]

Possible Duplicate: How do I set a user environment variable? (permanently, not session) How can I permanently modify the PATH variable in Ubuntu? Is it possible to do it without modifying any ...
0
votes
2answers
11k views

Trying to set JAVA_HOME in ~/.bashrc [duplicate]

I have added this line at the end of ~/.bashrc export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java But when I execute echo $JAVA_HOME, I don't get anything as output, I expected "/usr/java/jdk1.5.0_07/...
1
vote
2answers
5k views

PATH variable getting reset after closing and reopening SSH session [duplicate]

I have used SSH (via putty) to connect to a VPC and then added a folder to my path using: export PATH=$PATH:/my/directory This works whilst the session is open, however when I close putty then ...
1
vote
1answer
5k views

How to set environment variables at startup in Archlinux [duplicate]

When I'm using the svn client in my bash I have to set first the variable SVN_EDITOR like this: export SVN_EDITOR=cat So I thought it'd be easier for my if I set the environment variable at startup. ...
0
votes
0answers
4k views

Removing path in env variable PATH permanently [duplicate]

I have recently installed Code Sourcery's ARM EABI Tool Chain. All the executable binaries were installed in a separate folder. I thought that the bin path will be added to env variable $PATH. ...
1
vote
2answers
3k views

How to set environment variables permanently for one user [duplicate]

Possible Duplicate: How do I set a user environment variable? (permanently, not session) I have a user XX and I want to set the env variables for it. I looked for .bash_profile in the home dir ...
1
vote
1answer
634 views

Why can't I add something to PATH permanently? [duplicate]

I am trying to add ruby binaries to my path with this : $ PATH=$PATH:/home/ehsan/.gem/ruby/2.3.0/bin This works fine in that terminal session and I get : $ rails -v Rails 5.0.0 But after I close ...
0
votes
2answers
194 views

Being not sudo on debian how to make a .sh execute each time I log in? [duplicate]

Possible Duplicate: How do I set a user environment variable? (permanently, not session) So each time I log on I want to execute a command like export PATH=~/gcc-4.5.0-g/bin:$PATH. I have no sudo ...
2
votes
0answers
110 views

How to get environment variables to persist across login? [duplicate]

Possible Duplicate: How do I set a user environment variable? (permanently, not session) For a project I'm working on, I have a service that runs at startup which calls a script to set ...
1
vote
0answers
18 views

how to add route in PATH on Slackware? [duplicate]

I have used this export PATH = $ PATH:/usr/local/java/bin And when I use which java the path where java is found, but if I turn off my computer or close session when I put which java /usr/local/java/...
4
votes
1answer
11k views

Set persistent environment variable for all users

I am running Ubuntu on a local PC with the following linux distro/kernel: $ lsb_release -a >> ubuntu 16.04.3 LTS $ uname -r >> 4.10.0-33-generic I have a python (3.5) script which calls ...

15 30 50 per page