LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 01: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, 01: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, 02:41 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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, 03: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



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 04:44 PM
set environment variables johnvdster Linux - Newbie 2 05-30-2006 05:15 AM
how do i set environment variables? guitarfella Slackware 2 12-04-2004 11:05 PM
How to set environment variables anjaan Linux - General 3 06-10-2004 02:04 PM
Help with the currently set environment variables!! apoc013 Linux - Newbie 6 01-21-2004 01:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:34 PM.

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
Open Source Consulting | Domain Registration