---
title: "mac 操作技巧"
author: "wandejun1012"
date: "2016-03-22T11:45:21Z"
tags: []
categories: ["操作系统"]
slug: "mac"
draft: false
lastmod: "2016-08-29T15:43:09Z"
id: 2285386
url: "https://wandejun1012.iteye.com/blog/2285386"
---

1 command+shift+c,在finder目录下快速看到硬盘

 

2 command+shift+g，在finder目录下快速到指定目录，比如/，就是根目录。

 

3 fn+f11，快速显示桌面。

 

快速访问根目录。http://www.macx.cn/thread-2080254-1-1.html

 

4 打开finder后，按command+k,输入 smb://192.168.1.203,点击加号添加到收藏夹里，再点击连接即可。

 

mac如何访问共享文件夹：http://jingyan.baidu.com/article/624e7459acd0ee34e9ba5a4a.html

 

5 mac如何安装eclipse。这个很简单，官网下载来的是tar包。直接双接就会自动解压。

然后打开里面的eclipse.app即可。

安装链接：http://jingyan.baidu.com/article/7f41ecece8ef5b593c095c71.html

 

 

 6 mac截图：利用commod+shift+4是部分截图，commond+shift+3是全局截图。

截图教程：http://zh.wikihow.com/在Mac-OS-X上截取屏幕截图

 

 7 修改hosts文件，直接sudo vim /etc/hosts即可，改完后是即时生效的。

 

 8 mac的任务管理器：command+alt+esc

 

9 mac剪切,先按command+c,再按alt+command+v,即是剪切。

 

10 [Mac移动到行首和行尾](http://www.blogbus.com/howchou-logs/21865377.html) ,貌似不适合vim

 

11 vim移到文章末尾，用GG.移到当前行尾用$,[参考](/blog/2256518)

 

12 [securecrt快捷键](/blog/2303828)

 

13 [mac查ip](https://www.zhihu.com/question/22761563):

```
ifconfig | grep 'inet.*netmask.*broadcast'
```