LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-21-2001, 03:38 PM   #1
Daniel_Kim
LQ Newbie
 
Registered: Jul 2001
Posts: 12

Rep: Reputation: 0
the "Path" variable


Out of necessity, hoping not to sound too ignorant, how does one modify the "Path" variable to include more directories?
Thank you.


Daniel
 
Old 08-21-2001, 08:04 PM   #2
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
The global PATH is defined in the /etc/profile file. Individual user's PATHs are defined in their respective home directory's .bash_profile file. To add more directories, append them to the "PATH=" line, separating each directory path with colons. For example, the original path statement might be:
Code:
PATH=$PATH:/usr:/usr/bin
If you wanted to add the directory /foo/bar, the resulting statement would look like this:
Code:
PATH=$PATH:/usr:/usr/bin:/foo/bar
You'll either have to type "export PATH", or log out and back in to have the change take effect.

Last edited by DMR; 08-21-2001 at 08:07 PM.
 
Old 08-22-2001, 12:33 PM   #3
Daniel_Kim
LQ Newbie
 
Registered: Jul 2001
Posts: 12

Original Poster
Rep: Reputation: 0
To DMR

Thanks for your reply. I'm glad you were able to help me with my problem. I'm still trying to figure my way around linux. Thank you for the information.

Danny
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot connect to X11 window server using ":).0" as DISPLAY variable cclack Linux - Newbie 4 09-06-2007 09:32 PM
"Could not init font path element""Unix /: 7100 removing from list/ zameer_india Linux - Networking 7 07-03-2006 06:11 AM
Cedega from Fat32 (Invalid path "." given for "--use-dos-cwd") bdox Linux - Software 0 03-30-2005 11:24 AM
Cedega and Fat32 (Invalid path "." given for "--use-dos-cwd") bdox Linux - Games 0 03-26-2005 02:48 AM
Bash Script: Problem running variable command containing "" Paasan Programming 2 01-21-2004 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:04 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