---
title: "mac"
author: "yeelor"
date: "2015-06-13T16:24:29Z"
tags: []
categories: ["操作系统"]
slug: "mac"
draft: false
lastmod: "2018-12-18T16:43:03Z"
id: 2219448
url: "https://yeelor.iteye.com/blog/2219448"
---

杀进程

###### lsof -i tcp:8080

kill 

 

 

###### [Mac OS X使用快捷键改善窗口管理的六个方法](http://www.macx.cn/thread-2085916-1-1.html)

[sublime的基本使用](http://www.jianshu.com/p/049e2fdb55ae)

 

 

grep

```
more all |grep tb.*pc
```

 

 

 

清除 .DS\_Store

```
sudo find / -name ".DS_Store" -depth -exec rm {} \;
```

禁止系统创建 

```
defaults write com.apple.desktopservices DSDontWriteNetworkStores true
```

 

 

截屏

shift+command+4

 

 

错手删除了OmniGraffle内置的流程图型版 

1、点击文件--&gt;资源管理器--&gt;型版  
2、点击右下角齿轮，往下拉依次选择恢复--&gt;型版--&gt;软件--&gt;流程图

 

查找文件：

sudo find / -name FlowChart.gstencil

 

光标：

跳到行首：ctrl + a

跳到行尾：ctrl + e

 

brew install ssh-copy-id

 

 

MAC OSX终端登录ssh保持激活状态防止超时

etc/ssh\_config,打开ssh\_config文件,并找到如下行,默认前面带#号  
#   ServerAliveInterval 0

 

然后登录服务器进入/etc/ssh/ssh\_config,添加如下语句

 

 `ClientAliveInterval 60`

&lt;audio controls="controls" style="display: none;"&gt;&lt;/audio&gt;