LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-26-2001, 05:49 PM   #1
toxic53
Member
 
Registered: Sep 2001
Posts: 30

Rep: Reputation: 15
Path


HOw can I add something to the PATH

/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/user/bin

so say thats my PATH and I want to add current directory, I want the PATH to search the current directory it would be something like /. how would I add that to the PATH???

Anyone Thanks
 
Old 09-26-2001, 06:10 PM   #2
toxic53
Member
 
Registered: Sep 2001
Posts: 30

Original Poster
Rep: Reputation: 15
For anyone interested

I figured it out..

do an echo $PATH to know what the current path is

then do PATH=(whatever the current path is):.

the ":" is a seperator and "." is telling path to look in current directory
 
Old 10-11-2001, 06:26 AM   #3
rahul
LQ Newbie
 
Registered: Oct 2001
Location: India
Distribution: RedHat
Posts: 9

Rep: Reputation: 0
path

hi
If you are still facing the problem you can try this also same thing but the shorter method.

#export PATH=$PATHyour absolute path name)

For permanently adding your directory as one of the path you can edit files

/etc/profiles
or
/root/.bash_profiles (if your are using bash as your default shell)

with best regards
rahul
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Path reference in Linux (Absolute path) javabuddy Linux - General 7 06-05-2006 07:45 AM
Apache path and kde path questions darkraider Debian 1 11-12-2005 05:07 AM
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 12:24 AM
Removing path form PATH maginotjr Linux - Newbie 3 02-12-2005 02:23 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM

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

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