A set of dynamic variables that can affect the running processes.

learn more… | top users | synonyms

1
vote
1answer
39 views

Adding path to PATH environment variable using bash script in /etc/environment [duplicate]

I need to add path to my executable application to PATH environment variable. Because I need to add path during .deb package installation, I should use postinst script in debian package. After reading ...
2
votes
3answers
54 views

Get a script variable into subshell launched by find

Following on from this question I've used the following command in a bash script: find ${svn_root} -maxdepth 2 -type d -exec bash -c 'if svnlook info "$1" &>/dev/null ;then echo"$1" ...
0
votes
3answers
72 views

How do I correctly display the content of an environment variable (here: current user's home directory)?

If I type echo home I will only see the word "home" as output and not the "home/user" I am the only user on this machine and have a password. Why do I get the wrong output and what do I have to ...
2
votes
1answer
62 views

Remove annoying environment variable JAVA_TOOL_OPTIONS

Each time I run java or javac on terminal I get this annoying message Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar I looked up very location I know to find out where ...
0
votes
1answer
32 views

Can I create a shell variable accessible everywhere in the system?

I am writing a script which requires to store the value of a variable. This value will be used the next time the script is run. First I thought of storing it in a file. Then this crazy idea came into ...
1
vote
2answers
304 views

Why I can't use the CATALINA_HOME environment variable?

I am not yet a Linux guy and I have the following problem with environment variable. So I want to add a permanent environment variable and I do in this way: I open the /etc/profile file and I add ...
0
votes
1answer
37 views

Problem with adding path using zsh

I added a directory modifying ~/.profile and adding export PATH=$PATH:/home/...etc etc. But I realized that using zsh terminal I couldn't use the recently installed binary until I logged out from zsh. ...
0
votes
0answers
33 views

Environment variable to all usersE

I cannot able to set PATH variables gloablly. I tried: $ mvn -v mvn command not found Tried to edit /etc/bashrc: Permission Denied Logged in as root: $ su - root modified /etc/bashrc ...
2
votes
1answer
25 views

Shell calling shell(s) and passing env variable(s) or not

I want to launch/run /usr/bin/FreeFileSync (FFS) from my crontab at most once a day, whenever the external backup target volume is mounted. For that, I used @Germar's answer: i.e. a spooling-script ...
0
votes
0answers
33 views

Ubuntu 3.13.0-48-generic PATH Variable Not Working

I am trying to edit the PATH variable on a fresh Ubuntu install. For some reason it keeps throwing the error "No such file or directory" whenever I try to invoke my command. java;echo PATH=$PATH;echo ...
1
vote
1answer
48 views

cd: “No such file or directory” after setting a variable

$ export AMBERHOME=$AMBERHOME/home/rcibsd/amber14 $ cd $AMBERHOME bash: cd: ...
2
votes
2answers
141 views

How to set JAVA_HOME for all users for “elasticsearch” program?

I'm trying to set JAVA_HOME for elasticsearch but no luck till now. I tried to set it in .bashrc, etc/environment, etc/.profile all fail. this is the command I use to run elasticsearch: sudo ...
0
votes
1answer
37 views

How to set a permanent environment variable?

I am not yet a Linux guy and I have some problem trying to add a new permanent environment variable. So I have to set a new environment variable named CATALINA_HOME with this value: ...
0
votes
0answers
28 views

How to set environment variables for GUI program?

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, ...
1
vote
1answer
32 views

How to use shell variables after doing sudo su

I am writing a script to fix a missing 'F' letter in a mail log file. The mail log file is continuously updating. I am getting a file name, after that I am doing 'sudo su' to get superuser access. ...
0
votes
0answers
67 views

“-bash: cmake: command not found” in MATLAB with SSH

I am using MATLAB. In its command window I am using SSH to access a remote machine and run commands. When I attempt to do so I get error messages such as -bash: cmake: command not found Now I ...
1
vote
1answer
32 views

.pam_environment not loaded in TTY

I have environment variables set in ~/.pam_environment and they exist as expected in any virtual terminal I open. If I open TTY1 and login, my PAM environment variables are not present. How can I ...
0
votes
2answers
126 views

Environment Variable seems to be set yet not working

I use Ubuntu 14.10 with bash shell. I downloaded a gradle distribution and moved it to a new directory. I want to permanently set a environment variable to point to the bin sub-directory of the ...
0
votes
0answers
46 views

Java environment variable in Wine (32 bit prefix)

I need to run a Windows executable that requires Java 32 bit. Since Java 8 is still unstable in Wine, I installed a 32-bit Java (7u76) in a 32-bit WINEPREFIX. Now, when I run the Windows executable, ...
2
votes
3answers
125 views

The $PATH added to .bash_profile is not working after reboot

I am new to Ubuntu! And I am trying to setup manually Maven by adding Maven directory into $PATH. I created .bash_profile file in my home directory. The file contains this: export ...
0
votes
0answers
53 views

Path given in Environment variable shows empty after reboot

I am trying to set environment variable CATALINA_HOME for tomcat server. I used the command CATALINA_HOME=/usr/local/apache-tomcat-8.0.22 JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386 and export ...
2
votes
1answer
30 views

Apps are looking for $HOME, literally [closed]

After a power outage my user settings appeared to have vanished. However, my home folder was apparently fine, except that there was a new folder called $HOME in there. After some fiddling I noticed ...
0
votes
1answer
63 views

How How to set path in Ubuntu

I want to work with Zettair search engine link. I installed the Zettair on Ubuntu 14.04; but, I can not install the Zettair executable in my PATH with following command. What should I do? ...
0
votes
0answers
10 views

$JAVA_HOME get empty after reboot or logout [duplicate]

We have a build machine running Ubuntu 1204 desktop version. We build Android source code 19 (KitKat) I properly set the environment variable using: export JAvAHOME=[my path] and the build run ...
0
votes
1answer
1k views

How to path set in Ubuntu 15.04 of Java , download the version of java-8-oracle?

I am new to Ubuntu. Recently we changed my OS to Ubuntu 15.04. I am installed java-7-openjdk-i386 from "Ubuntu Software Center" and when I use the "Android Studio" then it highly recommended me to ...
1
vote
1answer
83 views

Not able to 'unset' environmental variable permanently - UBUNTU

I set environment variable using export CATALINA_HOME=/home/chirag/Softwares/apache-tomcat-7.0.56 before some time from the terminal. But now i want to unset this variable premenantly. I use unset ...
2
votes
2answers
79 views

How to set environment variables separated by dots

I have to set an environment variable separated by dot in my tomcat startup script. For example host.name=localhost I know shell doesn't accept dot separated variables. Is there a work around ? I ...
0
votes
0answers
18 views

Export $PATH issue in linux mint [duplicate]

BTW I'm a novice user of Linux I'm using Linux Mint Cinnamon 17.1, I had Ubuntu before I've just installed rvm ruby and some ruby gems... in one terminal session. I echoed PATH on that session ...
3
votes
1answer
24 views

Store in environment variable

I tried storing the contents of a file in an environment variable using one of those commands. a= cut -f 1 abc.txt cut -f 1 abc.txt >a neither works . So , can anybody help me out?
1
vote
1answer
37 views

Maven 2 mysteriously showing up in $PATH

I'm upgrading to maven 3 but have hit a small snag in that maven 2 is mysteriously showing up in my PATH variable. I've checked ~/.bashrc, ~/.profile, /etc/bash.bashrc, /etc/environment, /etc/profile ...
1
vote
1answer
41 views

Secure Shell isn't propery loading .bashrc

I've got a seemingly simple issue - I have a 15.04 server that I connect to via ssh. Currently, I have a couple of folders added to my PATH environment variable in my .bashrc file: #... (rest of ...
1
vote
2answers
54 views

Add and remove a directory/file to the PATH

I want to learn how to add and remove a directory/file from the PATH but there are hundred answers and a lot of them are contradictory (or so I believe). I have found answers that suggest editing ...
0
votes
1answer
29 views

Mozilla NSS building

In this instruction :"In order to start the build process, use "cd nss" and execute "make nss_build_all". By default this will produce a build in debug mode and for a 32-bit architecture. You may set ...
0
votes
3answers
90 views

How to Verify JAVA_HOME path

I installed java in opt/jdk1.7.75 having following directories--> bin db include jre lib man COPYRIGHT LICENSE README.html relase & other files I set JAVA_HOME path in .bashrc file as follow: ...
0
votes
1answer
94 views

How can I capture shell variable output to use in my capistrano task

I am using capistrano to deploy a Ruby on Rails application. I previously was using Centos. In converting my task to be used with Ubuntu, I have a task that I was using for Centos was: capture("env ...
1
vote
1answer
312 views

How to specify an Environment systemd directive containing =?

I want to specify an Environment systemd directive containing =, e.g. Environment=CATALINA_OPTS=-Dappserver.home=/var/lib/archiva/apache-tomcat-current ...
0
votes
1answer
66 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 ...
0
votes
1answer
119 views

Unable to run apt-get with proxy even after setting the environment variables

I was trying to configure proxy in my lubuntu 14.04. Since I wanted to use the username and password for my proxy authentication, I opted ntlm and installed it. Now I can use my proxy link as ...
4
votes
1answer
158 views

Writing a program that will demo the $PS2 variable

I've been customizing my terminal prompt, and found that it's possible to change the "secondary prompt". However, I have no way to test the changes I make to this one so I was wondering if a simple ...
0
votes
1answer
20 views

How to make speech-dispatcher work with variables?

I tried some bash variables with spd-say command just like the date variable spd-say $date or spd-say "$date" but didn't work with me. So how to make it accept variables?
0
votes
0answers
32 views

$PATH in Ubuntu and Windows

What are the differences both conceptual and practical in the use of the $PATH enviromental variable in Ubuntu and in Windows ? I searched quite a bit but only found partial information. thanks
0
votes
2answers
52 views

How to change directory for $HOME

My home folder (~ and $HOME) points to /home/user , how do I change this directory? I tried HOME=/new/dir But this only works until I start a new shell. I also tried looking for definitions ...
1
vote
0answers
185 views

Bash script: command not found

I have an executable script install_packages.sh in /home/etienne/admin folder. The directory's path is added to $PATH variable from /etc/bash.bashrc. When I type #echo $PATH I see that the variable ...
1
vote
2answers
110 views

Nautilus “open in terminal” extension will not propagate SSH_AUTO_SOCK?

I have Ubuntu Gnome 14.04, up-to-date; nautilus and nautilus-open-terminal are installed and updated: [romano:~] % wajig status nautilus nautilus-open-terminal Package Installed ...
2
votes
3answers
197 views

Installing Java 8 and Setting environment variables

I just completly shifted to Ubuntu from Windows 7. I am a java developer and now I need to install Java 8 JDK and JRE. I installed 64 bit ubuntu 14.04.02 and it seems like there are lot of ways to ...
0
votes
2answers
44 views

Create a dir on scratch with same name as in pwd directory

HI I try to simplify my problem, I'm trying to write a bash script, which can take the actual directory name (just like you get by statement "basename" ) and create a same directory on scratch. ...
0
votes
0answers
174 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 ...
1
vote
1answer
53 views

how to insert a path front of path environment variable

here is my $PATH variable. /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games when i want to add ./ to the PATH by placing export PATH=$PATH:./ i got like ...
2
votes
1answer
670 views

How do I get Ubuntu to use Anaconda's python instead of the standard /usr/lib/python…?

I installed Anaconda using instructions provided on the main website, which are similar to those that can be seen here: Installing Anaconda python on ubuntu However, I found that I had to manually ...
0
votes
0answers
41 views

Add a bunch of exe files in wine and edit environement variables

Disclaimer : Noob here I have installed a software using wine in ubuntu 14.04 . I have 2 issues : The software requires I create a new environment variable and add the path of a certain file. In the ...