Jump to content

Can't change $PATH in SuSE 10.1


maddog
 Share

Recommended Posts

I have tried many methods of changing the "$PATH" environment variable in OpenSuSE 10.1 but to no avail. The variable changes until I close the terminal but then goes back to the default. I tried:

maddog@64:~>PATH=$PATH:/bin

maddog@64:~>export PATH

but when I close the terminal, it gets rid of ths change. Any help is greatly appreciated.

Link to comment
Share on other sites

sorry. I should have been more descriptive before.

when use the "env" command, it returns this for $PATH:

PATH=/home/mhowell/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin

I need it to include the directory "/opt/kde3/share/apps" and used the method in my first post to try to add this directory to $PATH.

I am sorry that I am bad at explaining things.

Thanks

Link to comment
Share on other sites

I need it to include the directory "/opt/kde3/share/apps" and used the method in my first post to try to add this directory to $PATH.

Specific to your own command prompts:

Add the 2 commands to your .bash_profile file in your home dir.

Specific to your own X environment:

Add the 2 commands to your .xinitrc file in your home dir (not 100% sure about this one).

System-wide:

Add the two commands to /etc/profile (this file should already exist. If it's not there, check the INVOCATION chapter of the bash man page first to make sure that's the file your distro uses).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...