LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 08-14-2008, 02:38 AM   #1
mithrandiruk1
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Rep: Reputation: 0
How can we set the environment variables in fc9


Hi ,

i am a newbie to linux and i am using Fc9 and i would like to how one can set environment variables.

i would also like to know whether if fc9 contains csh and if do contain how to change it from default bash shell (for fc9) to csh.

thankin u
uday
 
Old 08-14-2008, 02:54 AM   #2
nilathinesh
Member
 
Registered: Nov 2006
Distribution: Fedora 7 & 9, Ubuntu
Posts: 41

Rep: Reputation: 15
hi welcome to LQ,

you can use the "export" command in linux to set the environment variable and you can list the environment variables using "env"

example:

Quote:
export MPLAYER_VERBOSE=9
this will set the environment variable MPLAYER_VERBOSE=9

also on issuing
Quote:
$env
you will see that variable.

also .. for csh selection

on menu

System->Administration-> Users and Groups
select the user and select the properties, there you can change the login shell
 
Old 08-14-2008, 03:41 AM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Actually, simply assigning a value eg

var=value

sets the env var in the CURRENT shell level. You only need the 'export' cmd if you want that value avail to sub-shells.
 
Old 08-14-2008, 04:42 AM   #4
mithrandiruk1
LQ Newbie
 
Registered: Aug 2008
Posts: 2

Original Poster
Rep: Reputation: 0
thanx my issues are resolved now
 
  


Reply

Tags
environment, setting, variables


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you set environment variables leland9000 Linux - Software 1 04-01-2008 05:44 PM
set environment variables johnvdster Linux - Newbie 2 05-30-2006 06:15 AM
how do i set environment variables? guitarfella Slackware 2 12-05-2004 12:05 AM
How to set environment variables anjaan Linux - General 3 06-10-2004 03:04 PM
Help with the currently set environment variables!! apoc013 Linux - Newbie 6 01-21-2004 02:28 AM


All times are GMT -5. The time now is 08:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration