M1 terminal

every time that i open my terminal it says this:


/etc/zshrc:7: command not found: locale

/etc/zshrc_Apple_Terminal:104: command not found: mkdir

/Users/oshinchiong/.oh-my-zsh/oh-my-zsh.sh:56: command not found: mkdir

/Users/oshinchiong/.oh-my-zsh/oh-my-zsh.sh:117: command not found: rm

compdump:136: command not found: mv

detect-clipboard:33: command not found: uname

Posted on Aug 22, 2022 6:59 PM

Reply
4 replies

Aug 23, 2022 10:38 PM in response to oshin290

The Zsh Terminal error is the problem that appears when the Terminal cannot complete the task as it simply can’t access the file. Either the file is locked, the command has been formatted in a wrong way, or even the file permission is insufficient. However, to fix the issue, you can try the below methods:


1. Check Disk Permissions

2. Change the Ownership of the Directory to Solve Zsh Permission Denied

3. Grant Access to the Disk to Terminal if it has No Full Access

4. Use a Sudo Command


Hope this will help!

Aug 23, 2022 6:42 AM in response to oshin290

oshin290 wrote:

every time that i open my terminal it says this:

/etc/zshrc:7: command not found: locale
/etc/zshrc_Apple_Terminal:104: command not found: mkdir
/Users/oshinchiong/.oh-my-zsh/oh-my-zsh.sh:56: command not found: mkdir
/Users/oshinchiong/.oh-my-zsh/oh-my-zsh.sh:117: command not found: rm
compdump:136: command not found: mv
detect-clipboard:33: command not found: uname


I see you have added ".oh-my-zsh"


If you can not make a change to in Terminal> Preferences


Configuration Files:

/private/etc/hosts


Fixing a hacked up /etc/hosts file

Fixing a hacked /etc/hosts file - Apple Community



see reference:


Community - Oh My Zsh


Pimp my Terminal - An Introduction to "Oh My Zsh"




This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

M1 terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.