---
title: "MAC os 使用小技巧"
author: "xmong"
date: "2013-08-15T16:35:44Z"
tags: []
categories: ["操作系统"]
slug: "mac-os"
draft: false
lastmod: "2015-06-26T17:59:47Z"
id: 1925054
url: "https://xmong.iteye.com/blog/1925054"
---

1，mac查看进程占用端口号

命令：lsof

lsof -i:8080

说明：8080是指定要查看的端口号，执行上面命令我们可以看到进程PID号，同理在windows中我们可以netstat -ano来查看所有进程占端口号的信息。

2, command + option + esc 强制关闭应用程序窗口

3, command + tab 切换开启的应用程序