LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-20-2001, 08:03 AM   #1
dave_lane
LQ Newbie
 
Registered: Sep 2001
Location: Australia
Distribution: Red Hat 7.1
Posts: 3

Rep: Reputation: 0
rh7.1 environment variables (eg path)


i'm relativey new to linux (rh7.1 seawolf) and was wondering if you could please give me some advice as to which files to modify when i need to change the path...i've been told its .bashrc and/or .bash_profile and/or etc/ld.so.conf Which file(s) is it?
 
Old 09-20-2001, 09:05 AM   #2
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
/etc/ld.so.conf contains a list of directories that the system should search for library files. You probably won't need to touch it.

~/.bashrc is a script run by the shell everytime you open a new session.

~/.bash_profile is a script run by the shell everytime you open a login session.

To set my PATH I have the following line in my ~/.bashrc:

export PATH=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/david/bin:/opt/IBMJava2-13/bin

This will only work if you use bash for your shell.
 
  


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
How to set PATH and CLASSPATH environment variables bronko Linux - Newbie 2 12-20-2003 12:13 PM
Environment variables kdnt Linux - Newbie 11 11-01-2002 09:19 AM
how do I edit the $PATH environment variable in RH7.3 needamiracle Linux - Software 3 07-02-2002 10:19 PM
environment variables da Perp Linux - Newbie 5 01-23-2002 10:34 AM
environment variables aethereal Linux - Newbie 7 12-19-2001 10:34 AM


All times are GMT -5. The time now is 02:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration