terminal problem
hi, when i open my terminal i see that change to this:
now i write many command like ls , clear .... .
they did not work.
any body can help me?
MacBook Pro 13″
hi, when i open my terminal i see that change to this:
now i write many command like ls , clear .... .
they did not work.
any body can help me?
MacBook Pro 13″
The first message is normal and it is true that zsh is now the default shell as opposed to the previous bash shell. In the second screen shot it is true that the command you typed is not a valid command. What are you trying to accomplish?
Disclaimer: Be careful using terminal with commands that you are not familiar with as the wrong command could render your Mac unusable and the changes cannot be undone.
Seems like your Bash configuration profile has broken the PATH variable. You will need to fix the PATH variable in one of your Bash profile files located in your home user folder. Did you by any chance install Homebrew? I have seen numerous posts recently where this has occurred.
In the mean time you will need to use the full path to the commands you want to use until you fix the profile issue.
Use the Command-Shift-Period chord in Finder in your home login directory (to toggle viewing of hidden files), and then rename the two files .bashrc and .bash_profile (to bashrc and bash_profile, or some such) and you can then restart Terminal app and should be able to log in.
You might not have both of these files.
The leading dot “hides” the file from routine viewing.
The Command-Shift-Period chord toggles viewing hidden files and directories within Finder app.
For some background on the bash login scripts and the shell and PATH, start here:
… https://scriptingosx.com/2017/04/about-bash_profile-and-bashrc-on-macos/
… https://scriptingosx.com/2017/04/on-bash-environment-variables/
kaz-k wrote:
If you insist to use bash, type "cp ~/.zshrc ~/.bash.rc" then type "rehash"
Unless I’m misunderstanding the goal here, copying a zsh login script into a bash login script probably isn’t going to be all that fruitful. When .zshrc does exist, which it doesn’t always exist in a bash-era login, too. And if in bash (as is the case here) and not in zsh, it’s hash -r and not rehash.
If you insist to use bash, type "cp ~/.zshrc ~/.bash.rc" then type "rehash"
terminal problem