← Back to team overview

ubuntuforums-unanswered team mailing list archive

Re: [Question #77583]: Profile directory path changed

 

Question #77583 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/77583

    Status: Open => Answered

Larry Jordan proposed the following answer:
     This is educational for me.  Seems Ubuntu/debian altered
configuration to set up a default path elsewhere, which can then be
overridden or added to by us users.As noted in ".profile", you can
apparently override it (fairly) completely with the ".bash_profile"
suggestion.  I imagine your PATH variable (assume that is what you are
asking about; output seen with "echo $PATH") should still include the
basic stuff:

/home/$USER/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

(Of course, $USER should have your username.)
     From there, you should be able to add to your PATH much the same way as in the example in your ".profile":

      PATH="$HOME/bin:$PATH"
      So, for example, if you had something in your $HOME directory you need to be able to call & execute, say in a directory like $HOME/scripts, you could add it by adding a line like this:
       PATH=$PATH:$HOME/scripts

       Just noticed something... guessing you typed in the contents of
your ".profile" file, but in the real one, there's no space, right?
Cause what you gave us says 'PATH="$HOME/ bin:$PATH"'.   There shouldn't
be a space before "bin".

      Anyway, is this on track with what you are asking about?  Think it
would be easier than trying to copy from a different profile or not, and
might be a lot of unnecessary work.

-- 
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.