Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

快速查看Mac IP地址 #43

Open
sfsoul opened this issue Dec 17, 2019 · 0 comments
Open

快速查看Mac IP地址 #43

sfsoul opened this issue Dec 17, 2019 · 0 comments
Labels

Comments

@sfsoul
Copy link
Owner

sfsoul commented Dec 17, 2019

方法一

  • 打开终端,输入ifconfig,敲击回车;
  • 肉眼查找 en0 下的inet值。

方法二

  • 点击右上角 WiFi 图标;
  • 选择【打开网络偏好设置】。

方法三

  • 按住 Option 键,同时点击右上角 WiFi 图标即可。

方法四(设置别名)

  • vi ~/.zshrc
  • alias myip="ifconfig | grep inet\ "
  • source ~/.zshrc

参考

@sfsoul sfsoul added the mac label Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant