Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bash, open, sudo, env, ls, su, nano and other COMMANDS NOT FOUND

Tags:

terminal

macos

I am running MAC OSX

I was trying to set environmental variables and I think I screwed up my .bashrc .bash_profile

Now I can't open them and make them correct

HELP!!!

like image 323
ComputerNoob Avatar asked Oct 27 '25 21:10

ComputerNoob


1 Answers

In the terminal type

PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$PATH"

then

export PATH

Then delete the screwed up .bashrc or .bash_profile. Whichever one was edited

like image 141
ComputerNoob Avatar answered Oct 29 '25 17:10

ComputerNoob



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!