MacOS Terminal is not showing any $PATH
MacOS Terminal is not showing any $PATH
no bash command was working in my terminal, so I tried to reset my $PATH and somehow screwed it up more. Any help!
-bash: export: `/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin/': not a valid identifier
Roopalis-MacBook-Air:~ roopa$
Roopalis-MacBook-Air:~ roopa$ echo $PATH
Roopalis-MacBook-Air:~ roopa$
Roopalis-MacBook-Air:~ roopa$
Thanks! it worked.
– roopa saxena
Jun 29 at 10:13
Unfortunately, the problem continues to exists. I closed the terminal and reopened it and got the same problem. :(
– roopa saxena
Jun 29 at 11:02
Because you have to add it in your .bash_profile (in your home directory). Then it will be permanent.
– KeyMaker00
Jun 29 at 11:08
1 Answer
1
Try adding the path in .bash_profile
:
.bash_profile
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin/
export PATH
PATH
is already set by a system configuration file; you can update the value in your local configuration, but you should not overwrite it.– chepner
Jun 29 at 13:58
PATH
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
Try this: export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin/
– KeyMaker00
Jun 29 at 9:42