Yinchen San
Yinchen San

Reputation: 49

OSX 10.10.3 zsh: command not found: open

I can not use the open command in my mac。Who can tell me why. I wii be very grateful。

╭─sanyinchen@sanyinchendeMacBook-Pro  ~  
╰─$ open                                                                                                         
zsh: command not found: open

Upvotes: 0

Views: 4366

Answers (2)

Yinchen San
Yinchen San

Reputation: 49

  • I copy the open file from other mac and copy it to the /usr/bin/

Upvotes: 1

StianE
StianE

Reputation: 3175

On my mac open is located in:

$ which open
/usr/bin/open

You're likely missing /usr/bin from your path.

# To verify:
echo $PATH

# To add it (temporarily)
export PATH="$PATH:/usr/bin"

To add it permanently, add the above export line to your ~/.zshrc

Upvotes: 0

Related Questions