LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 09-22-2006, 06:55 AM   #1
mperez
LQ Newbie
 
Registered: Jul 2006
Location: Germany
Distribution: SuSe, CentOS
Posts: 28

Rep: Reputation: 15
Hoow to add new patht to the bashrc.file


hi,

I need add the following statements to .bashrc file(i dont how to locate this file! help!)

EGS_HOME=home/user78/egsnrc_mp
EGS_CONFIG= home/user78/HEN_HOUSE/specs/i686-pc-linux-gnu-g77.conf
export EGS_HOME EGS_CONFIG
. /home/user78/HEN_HOUSE/scripts/egsnrc_bashrc_additions




help me
 
Old 09-22-2006, 07:18 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
It's pretty easy -- but there are a couple of rules: no spaces and use absolute paths (put the slash in front of home).

So
cd <this gets you into your home directory>
vi .bashrc <this file may or may not already exist>
EGS_HOME=/home/user78/egsnrc_mp
EGS_CONFIG=/home/user78/HEN_HOUSE/specs/i686-pc-linux-gnu-g77.conf
export EGS_HOME EGS_CONFIG <assuming HEN_HOUSE is already defined!>
Save the file.
Log out, log back in, and you'll have those variables set in your environment. To see them,
echo ${EGS_HOME}
echo ${EGS_CONFIG}
Also, take a look at "man bash" about local or personal initialization files (.basrc is one).
 
Old 09-22-2006, 08:45 AM   #3
mperez
LQ Newbie
 
Registered: Jul 2006
Location: Germany
Distribution: SuSe, CentOS
Posts: 28

Original Poster
Rep: Reputation: 15
thaks

thank u
huao, you got it.


but i hsve used kate editor. but the program works.

crace. see ya
 
  


Reply


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
Bashrc file Gins Linux - General 19 09-06-2005 03:19 PM
can't the file bashrc Paxmaster Linux - Software 10 01-02-2005 06:58 AM
where is the .bashrc file??? xenia Linux - Newbie 8 05-08-2004 12:11 PM
how to add environment variable to .bashrc file hasan Linux - General 7 10-03-2003 04:43 PM
how to add environment variable to .bashrc file? hasan Red Hat 1 10-03-2003 01:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 01:34 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
Open Source Consulting | Domain Registration