Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

MAC terminal issue #24

Open
tiyamartin opened this issue Sep 4, 2013 · 1 comment
Open

MAC terminal issue #24

tiyamartin opened this issue Sep 4, 2013 · 1 comment

Comments

@tiyamartin
Copy link

Hi,

Till yesterday everything was fine..But when i opened terminal today morning and tyoed coomands they are teeling like

-bash: java: command not found
-bash: sudo: command not found etc

I dont know what happened. Yesterday i changed envt variable..i dnt knw it is because of that..now i dnt know how to reset that because when i type

open -e.bash_profile

it shows,

-bash: open: command not found

pls help

@ervandew
Copy link
Owner

ervandew commented Sep 9, 2013

Sounds like your PATH environment variable got reset or messed up in some way. Can you echo your path to see what it's set to (just wrapping it in pipes so that if PATH is empty you can still see that the echo succeeded):

$ echo "|$PATH|"

If that result is empty or lacks something like /bin or /usr/bin, then that is probably your problem. You'll need to track down where that is getting messed up and fix that. You should be able to still run commands, you'll just need to do so using their full path, something along the lines of:

$ /usr/bin/vim ~/.bash_profile

That path may differ on OSX.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants