mac常用命令

1. lsof 查看端口;

   kill -9 pid 杀死进程

   ps -ef | grep pid 查看进程详情

2. 查看本机IP地址的方法:

    1) 系统偏好设置,网络

    2) 终端输入命令:ifconfig | grep "inet " | grep -v 127.0.0.1

3. 

原文地址:https://www.cnblogs.com/Jtianlin/p/9789739.html