473,406 Members | 2,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Where are the environment variables under Ubuntu?

momotaro
357 100+
Hi,
I'm trying to permanently modify some environment variables, but it seems that I can't find the file that contains them. Can You please in light me.


Best regards
Jan 8 '11 #1
10 2755
sicarie
4,677 Expert Mod 4TB
Which ones are you trying to modify?
Jan 10 '11 #2
momotaro
357 100+
Is there any file that hold all of them ?
Jan 10 '11 #3
sicarie
4,677 Expert Mod 4TB
No, it really depends on what you're attempting to do.

Are you attempting to interact with a program? Or just the shell? Change logon behavior? What do you want to do?
Jan 11 '11 #4
momotaro
357 100+
I need (for an exercice) to change at least 20 envirenoment variables so I have no idea about those tat we can't change permanently and those that we can't...
Jan 11 '11 #5
numberwhun
3,509 Expert Mod 2GB
On the command line, simply type the following and hit enter:

Expand|Select|Wrap|Line Numbers
  1. env
  2.  
That will print out a list of the environment variables. Mind you I am using bash, but each shell should have this command or something similar. You can also redirect it to a file if you need to.

Regards,

Jeff
Jan 11 '11 #6
momotaro
357 100+
I know that thx for your help but am looking for a file that contains them that I could change so I alter them permanetly
best regards
Jan 11 '11 #7
Mariostg
332 100+
You can alter permanently on a user basis by modifying the .bashrc file.
Jan 11 '11 #8
numberwhun
3,509 Expert Mod 2GB
@Mariostg is correct. If you want different values for the environment variables, you should set them in your .bashrc file. The environment variables are set dynamically when you log in. I don't know of any file where they are set. You change their values as needed with your rc file.
Jan 11 '11 #9
momotaro
357 100+
Let's say that I want to check the system language!
if the language is English change it to French...
So I'll be needing the list of possible values and where to find this list and how to apply the changes
Jan 14 '11 #10
numberwhun
3,509 Expert Mod 2GB
If there are things that you want to change in Ubuntu and you don't know how, us google. For instance, I searched for "change system language ubuntu" and one of the first results was this. That should help you with that issue.
Jan 20 '11 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Larry Woods | last post by:
I am losing Session variables, but only those that are set in the page previous to a redirect to a secure page. Anyone seen ANY situation where Session variables just "disappear?" Note that...
175
by: Sai Hertz And Control Systems | last post by:
Dear all, Their was a huge rore about MySQL recently for something in java functions now theirs one more http://www.mysql.com/doc/en/News-5.0.x.html Does this concern anyone. What I...
18
by: lylefair | last post by:
Can you post code, or a reference to a md? or ad? file on a website, where object variables are not released when they go out of scope and cause a problem, (but causing a problem is extraneous to...
7
by: S. A. Hussain | last post by:
Where Global variables created in STACK or HEAP in C/C++? ve##tolimitsyahoocom, delete ##
5
by: Tee | last post by:
Hi, In VB, we can add a module to put all the variables and functions, do we have something similar in C#? Thanks
17
by: Woody Splawn | last post by:
I am finding that time after time I have instances where I need to access information in a variable that is public. At the same time, the books I read say that one should not use public variables...
18
by: Jack | last post by:
Thanks.
13
by: deepak | last post by:
Hi In the following function how the memory 'll be allocated. 1) Will it allocate memory for all the char's together or allocate for first char. then for int then for float and after this only...
2
by: mahendra23 | last post by:
can you tell me where ststic variables are stored in stack or heap
0
by: Mike K | last post by:
Where are the variables in Flash/AS stored on the machine when it is run?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.