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 07-19-2005, 02:40 AM   #1
Alwyn
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora Core 3
Posts: 17

Rep: Reputation: 0
refreshin the path


Is there a command one can use to refresh the path after changing the /etc/profile file and you don't want to log out or reboot? The profile file was changed but aren't reflected in when I echo $PATH

Thanks
Alwyn
 
Old 07-19-2005, 06:05 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Just type the command that you put in your profile file at the terminal like this:

PATH=$PATH:$HOME/bin
export PATH

Edit:
Even easier, is to execute your .profile like this:

sh ~/.profile

Last edited by tredegar; 07-19-2005 at 06:08 AM.
 
Old 07-19-2005, 07:04 AM   #3
Alwyn
LQ Newbie
 
Registered: Jan 2005
Distribution: Fedora Core 3
Posts: 17

Original Poster
Rep: Reputation: 0
nice one...thanks!
 
  


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
Image Path reference in Linux (Absolute path) javabuddy Linux - General 7 06-05-2006 08:45 AM
Apache path and kde path questions darkraider Debian 1 11-12-2005 06:07 AM
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 01:24 AM
Removing path form PATH maginotjr Linux - Newbie 3 02-12-2005 03:23 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 07:10 PM


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