Results 1 to 5 of 5

Thread: [SOLVED] Embarrassingly stupid $PATH question

  1. #1
    Join Date
    Nov 2008
    Beans
    2

    [SOLVED] Embarrassingly stupid $PATH question

    I am using AMD64 Intrepid. I installed SUN's JDK version 6 through synaptic package manager. I modified a file somewhere on the system to make $PATH=/usr/local/jdk/bin;$PATH. This is unfortunately not the correct path to the JDK binaries. Now I can't remember which file I modified. I have checked all the obvious ones. /etc/bash.bashrc etc...
    I have a totally vanilla Ubuntu setup, is there a list of standard places where the $PATH can be modified or is there a grep command I can use to search everything for the change? Is there something which tracks/audits changes to the $PATH as it boots up? Thanks in advance.

  2. #2
    Join Date
    Jun 2007
    Location
    Greater Boston
    Beans
    1,586
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Embarrassingly stupid $PATH question

    In your /home/<you> directory, did you check

    .profile
    .bash_profile
    .bashrc
    cmn

  3. #3
    Join Date
    Nov 2008
    Location
    York, UK
    Beans
    3
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Embarrassingly stupid $PATH question

    I'd begin looking in ~/.profile

  4. #4
    Join Date
    Apr 2007
    Location
    Munich, Germany
    Beans
    1,578

    Re: Embarrassingly stupid $PATH question

    I've installed the sun-java6-jdk on my 32 bit system, and I didn't have to change the path variable like you do in windows, are you sure you need to for your 64 bit?

    To answer your question the $PATH variable is declared in /etc/profile and ~/.profile (also .bashrc and .bash_profile I think).

    You can probably also do:
    Code:
    echo $PATH
    export $PATH="<values for the path>"
    I'm just thinking out loud with that command, someone would need to test it.
    Last edited by lswest; November 8th, 2008 at 08:58 PM.

  5. #5
    Join Date
    Nov 2008
    Beans
    2

    Re: Embarrassingly stupid $PATH question

    Thanks very much for the help, it was indeed in /home/<me>/.profile
    I guess I didnt check all the obvious places after all

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •