Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change PATH

Status
Not open for further replies.

Norberto

IS-IT--Management
Jun 13, 2000
46
PT
Hi,
I add a /bin/newpath in $PATH, so isn't work good, Where I find the file has de Path name or How can I change it ???
Thanks
 
The command:

echo $PATH

should show you what your PATH is set to. Why didn't your change work? I wonder whether you added your new path correctly. The format is:

PATH=$PATH:/bin/newpath ; export PATH

This takes everything currently in the $PATH variable and appends the new directory to it. You then need to export it to make it available globally. Hope this helps.
 
Thanks that I now...
I want to edit the file has the Path, because I edited before but I forget file name.
Example : if I wrote a path wrong how I can change it???
 
Your path should be set up in your .profile in your home directory, and/or in /etc/profile (the 'default' PATH assigned to all users logging in).

You should be able to edit it in there, then refresh your environment (logging in again will do this) to take on the new settings. Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top