Tagged Questions
3
votes
3answers
81 views
Where is the environment string actual stored?
Where is the environment string actual stored? In the heap or at the top of the address space of the process?
0
votes
1answer
32 views
Difference between sudo su - user and sudo -iu user [duplicate]
I was wondering if there were any difference (in environment ?) between doing
sudo su - user
and
sudo -iu user
From what I know:
By using
sudo su - user
I open a new shell as user, and the ...
4
votes
1answer
44 views
Permanent Environment Variable for all users
I want to have all users on the system to have an environment variable named SPI that points to /usr/local/share_ideas directory. How do I do it?
1
vote
1answer
37 views
Effect if any of changing LD_LIBRARY_PATH environnment variable on emacs fonts?
The rendering of my emacs fonts changes if I define a specific list of directories under the LD_LIBRARY_PATH environment variable just before I call emacs. I changed this because I wanted to use emacs ...
2
votes
1answer
57 views
How to print apparently hidden environment variables?
Environment variables can be shown with env; but, some are not shown. For example...
echo $EUID might produce as result of 1000 yet
env | grep EUID produces no result.
What is this type of variable? ...
2
votes
3answers
136 views
What is the difference between ./script and . ./script? [duplicate]
Possible Duplicate:
Using ‘.’ to execute files in bash
I was trying to figure out how to export my environmental via script instead of changing my .bashrc file.
I found this old useful ...
2
votes
2answers
472 views
How to change environment variables without re-logging to UI?
How can I change environment variables without re-logging to UI?
I want to re/define some variables and want them set on my current logged in shell (including UI). I know logging out and then logging ...
5
votes
2answers
236 views
Run a script automatically as I switch to a directory [duplicate]
Possible Duplicate:
Execute bash scripts on entering a directory
I am running an environment which requires some very specific tool versions.
The commands to set up the environment are in a ...
0
votes
1answer
143 views
Fedora 7 server export in .bashrc not getting set
I'm trying to set the JAVA_HOME environment variable in my .bashrc but every time I log back in it gets unset again to its original value, below is my .bashrc file
# .bashrc
# User specific aliases ...
1
vote
4answers
209 views
Exporting environment variable
I am having some problem with bash. I want to export an environment variable whose value contains a variable but I don't want that variable (which is within the value) to be evaluated during the ...
5
votes
3answers
2k views
How to read environment variables of a process
Linux's /proc/<pid>/environ does not update (as I understand it, the file contain the initial environment of the process).
How can I read a process's current environment?
0
votes
0answers
294 views
Why do you need sudo for “sudo su root”? [duplicate]
Possible Duplicate:
When do su and sudo use different passwords?
Why do you need to use sudo su root ? Why won't it work to just use su root?
6
votes
5answers
308 views
PATH environment variable in linux
I want to know how the standard environment variables given by the linux OS like PATH, HOME are set automatically. In which file are these read from. There should be some file from which these ...
4
votes
3answers
137 views
How can I make a public variable in Linux that all users would see?
I need to have a variable $FOO on the system that contains a string all users could use, but I have no idea how to create one.
The Upstart job is obviously not a solution as from this thread - Is it ...
4
votes
2answers
2k views
Is it possible to export env variable via Upstart?
I need to export a variable FOO=stringhere so that system processes could use it. And the place I would like to do this, is Upstart job.
Unfortunately, I tried as per Upstart manual to do env ...