Broke my bash

Discussion in 'Mac Basics and Help' started by watkinskris, Feb 1, 2015.

  1. watkinskris macrumors newbie

    Feb 1, 2015
    Hello everyone. This is my first time posting here so please forgive me if I have posted in the wrong section by error.

    I have been trying to get the source code for Apache OpenOffice by using the bash command terminal. However, it wasn't finding the commands I needed to use. I then went and tried

    sudo -s

    but it came back with sudo command not found.

    I then ran the

    echo PATH$

    command and it came back with this


    Now, I know this means I have broken my bash and that my PATH is all messed up. For one of my programming classes I had to install JAVA developer tools and followed an online how to. It looks, however, like I did something really wrong.

    Can anyone give me some advice on how to fix this? Or point me to a place that has a tutorial I can follow to fix my PATH.
  2. lukeg01 macrumors newbie

    Jun 23, 2014
    here is some info about your path.
    My path is
    so you probably need to add the other path to it as well so my GUESS would be you need
    I would like someone to confirm that
    setting it to the first will probably solve it but still won't give you java command line (I think). I'd say try the second, if it doesn't work get the first.

Share This Page