LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 01: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, 05:05 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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 05:08 AM.
 
Old 07-19-2005, 06: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 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 - Newbie

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