l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2010 Jun 20 13:34

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] PATH Changing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] PATH Changing

Quoting "Anahita Yazdi" <atyazdi@ucdavis.edu>:

> Hi again,
> I have been trying to change the PATH on two computers: one is mac osx and
> the other one is Linux (Ubuntu 10.04) But I faced several problems and
> basically I have the following questions:
> I changed the PATH on terminal on the Linux using "set PATH" command and I
> accidentally changed it to a wrong one. How would I be able to undo PATH
> basically? what is the command for it? Because the "set" command just adds
> to the PATH without letting me change it.
> My other question is regarding changing the PATH permanently in bash shell
> for mac. When I change the PATH on the terminal, I realize it doesnt
> permanently change it. I realized the PATH I have in X11 terminal is
> different from the one on regular terminal. and once I close terminal page
> and reopen it again the PATH is gone back to its original form. How can a
> PATH be changed permanently on both terminals?
> Lastly a weird solid gray color screen pops on the background when I open up
> X11 terminal which the only way to get rid of it is keying "control Q". Does
> anyone by any chance had this problem before? Or knows why would this
> happen?
> I will really be appreciated if anyone would be able to help me with these
> issues. Thank you so much in advance,
> Anahita

Setting your PATH to be what you want when you start a new terminal  
works similarly in most Linux distributions and on Mac OS X.   
Sometimes odd behaviors can be worked out by trial and error.  In your  
home directory, there may already be a .profile or .bash_profile.  If  
neither exist, create an empty text file named .bash_profile.  In that  
file you can specify your path, like this:

export PATH=/new/path/to/add:$PATH

where $PATH specifies to keep what already is in the path still in the path.

Sometimes, a .bash_profile may already exist that will contain lines  
to call ~/.bashrc.  If this is the case, then some systems expect you  
to make your personal entries in .bashrc rather than in .bash_profile.


vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.