Tagged Questions
1
vote
2answers
28 views
Why won't environment variables added to .profile show up in screen
I'm running Ubuntu 12.04
I added
export LD_LIBRARY_PATH=/home/dspies/workspace/hdf5-1.8.11-linux-shared/lib
to .profile
but when I log in and open terminal and put echo $LD_LIBRARY_PATH there's ...
3
votes
1answer
24 views
Environment var _
I send a printenv command in the commandline and I see one of the variables is the following:
_=/usr/bin/printenv
I now do this:
mo@mo-Toshiba ~/Workspace $ printenv _
/usr/bin/printenv
but when ...
9
votes
3answers
112 views
How to list all variables names and their current values?
Including not only $HOME, $PWD etc but any other you have defined.
2
votes
1answer
37 views
Lost PATH variable content
I was trying to add something to the PATH with :
export PATH=/user/home/sbt/bin
but I removed all of the content of PATH and I can not run any command on the terminal even ls ! So what should I do ...
2
votes
1answer
49 views
Why isn't ubuntu checking the correct directory in the $PATH variable?
I'm trying to run a program redis-cli
$ ls -lh /usr/local/bin/ | grep redis
-rwxr-xr-x 1 root root 4.2M Mar 24 19:49 redis-cli
-rwxr-xr-x 1 root root 5.6M Mar 24 19:49 redis-server
$ echo $PATH
...
2
votes
1answer
58 views
Program in $PATH not being found
I am running xubuntu 12.1, and am having some difficulty getting a program I have added to my path to execute.
The program I am attempting to execute is scan-view, from Clang. I built Clang from ...
3
votes
3answers
641 views
Cannot use “./” to execute a shell script
Maybe someone here would be able to help me out. Have installed Ubuntu 12.04 LTS (kubuntu) on two machines. The .bashrc and .bash_profile files are identical as the file structures on each machine is ...
2
votes
1answer
112 views
Why does running `time` and `/usr/bin/time` give different results?
Why does running time and /usr/bin/time give different results?
/usr/bin/time
thomas@tbdesktop:~$ /usr/bin/time -f "Elapsed time:%E" wc /etc/hosts
9 25 224 /etc/hosts
Elapsed time:0:00.04
time
...
1
vote
3answers
858 views
PATH variable resets with reboot
Just as the title indicates my PATH variable resets after every reboot. I read that I have to edit my bashrc file's PATH variable, but I don't have anything there that suggests anything related to the ...
0
votes
1answer
158 views
How to read the password from variable?
I am trying to move my file to another system which is located in some other place, with this command:
rsync -avrz src destination
It works fine. But what I need is to put this command in shell ...
5
votes
5answers
3k views
difference between bash.bashrc and /etc/environment file
Till data I was used to set my environment variables in the bash.bashrc file. Recently I told to use the /etc/environment file. Well, both work fine.
So, what is the difference between them?
I ...
3
votes
2answers
3k views
How can I reset $PATH to its default value in Ubuntu 11.10?
I accidentally unset all the directories of $PATH while trying to add a new one in ~/.bashrc. I opened a new terminal window as I was editing and now $PATH is empty. I'm worried if I boot from another ...
1
vote
1answer
122 views
Unable to press 'E' key in bash when I add export EDITOR=vim in /etc/inputrc
When I add the line export EDITOR=vim into /etc/inputrc and start a new session in BASH, I am unable to press the E key on the keyboard. (Well, I can press it, physically, but nothing shows up in the ...
5
votes
4answers
108 views
Why doesn't changing a variable in a script alter it outside the script?
Let's say I export a variable with the terminal. After that I call a script that alters that variable to something else. But when I return to the terminal and echo the variable, it remains as its ...
5
votes
3answers
5k views
How do I install the Instant Messaging application IP Messenger?
I've recently downloaded g2ipmsg (IP Messenger for Ubuntu 11.10).
However - this comes not as an installable package as previous ubuntu versions.
Thus I think I need to compile it. This application ...
2
votes
1answer
1k views
When I type in terminal: export JDK_HOME=“/usr/lib/jvm/java-6-sun/”, where does it get stored?
I have tried multiple locations, but with no luck of finding where was it added:
.bashrc
.bash_profile
/etc/profile
/etc/environment
.profile
When I do echo $JDK_HOME, I get what I expect ...
7
votes
2answers
4k views
Environment variables when run with 'sudo'
As example to my question, my ~/.bashrc file contains this lines:
> export LD_LIBRARY_PATH=/opt/intel/mkl/lib/ia32:$LD_LIBRARY_PATH
> export LD_PRELOAD=/opt/intel/mkl/lib/ia32/libmkl_core.so
...
2
votes
1answer
298 views
How do I get Guake(terminal) to report the correct terminal?
I've been using Guake on my laptop and my desktop and everything has been fine until I recently bought a new HD and did a fresh install of Ubuntu 10.10.
I installed Guake and it works fine except for ...
4
votes
2answers
2k views
Can't echo $CATALINA_HOME
When I echo $CATALINA_HOME I get a blank line, but when I ls $CATALINA_HOME I correctly get a listing of the directory. Why can't I echo it? I am running Ubuntu 11.04.
4
votes
2answers
1k views
How to recall history in teminal
I installed Ubuntu 10.10 yesterday. Then while using the terminal I noticed that once I quit a terminal session its history is gone, although history exists for applications in terminal ...
4
votes
2answers
681 views
What is the meaning and format of LANGUAGE?
I'm used to environment variables such as LANG and LC_*, but I recently noticed a LANGUAGE variable on my Ubuntu desktop. It's value was pt_BR:pt:en, and I'm wondering exactly what is meaning is. ...
10
votes
3answers
3k views
Environment variable vs Shell variable, what's the difference?
Somebody told me that:
BASH isn't an environment variable,
it's a shell variable
What's the difference?
5
votes
1answer
303 views
Why is $PATH different in the Nautilus-Elementary embedded terminal?
I'm running Ubuntu 10.10 with Nautilus-Elementary installed. When I open the embedded terminal in Nautilus (F7) and run echo $PATH, I get:
/usr/bin:/bin:./usr/local/bin:/bin
When run the same ...
9
votes
2answers
1k views
What are “$PATH” and “~/bin”? How can I have personal scripts?
What is $PATH?
How can I have commands/programs which are only available for me?
I have seen this path ~/bin mentioned before, but what is it used for, and how do I use it?
11
votes
4answers
13k views
Where to declare environment variables?
What are correct places for:
Global environment variables meant to affect all users?
User-specific environment variables?
152
votes
16answers
144k views
How to add a directory to my path?
How do I add a directory to my $PATH in Ubuntu and make the changes permanent?