Jump to content

Can't change $PATH in SuSE 10.1


Recommended Posts

Posted

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.

Posted

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

Posted

ask this at any linux forum or suse forum they will answer u in a matter of minutes

Posted
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).

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.

  • Recently Browsing   0 members

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