Looks like I've messed up my terminal really badly.
Im trying simple commands like ls, cd but I get:
-bash: ls: command not found
No brew commands are found either.
I have tried following Is there any way to reset Mac terminal environment to factory settings?
But I get the same same message that -bash: rm: command not found
I can't even open my profile_bash file. Is there anyway to reset the terminal to factory settings. Nothing is working in terminal.
Follow these steps to reset it:
mv .bashrc .bashrc.bak redo the same thing for .bash_profileTry recreating but files your renamed earlier by touch .bashrc same for .bash_profile.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With