Skip to content

Latest commit

 

History

History
132 lines (91 loc) · 7.04 KB

mac-os-study-guideline.md

File metadata and controls

132 lines (91 loc) · 7.04 KB

1. 知识体系

2. Further Reading

3. FAQ

3.1. Windows和Mac OS X的一些区别?

3.2. Macbook OS X Yosemite快捷键?

3.3. MacOS有哪些好用的SSH客户端?

参考:Mac OS X 平台有哪些好用的 SSH 客户端?, 最好掌握iTerm2tmux

3.4. MacOS建议使用什么包管理工具?

Homebrew Homebrew的用户手册

3.5. 如何配置Mac开发环境?

参考:Mac开发配置手册

3.6. Macbook Terminal中有哪些快捷键?

  • 清屏:Command + K 或者 Control + L
  • 新建标签: Command + T
  • 关闭当前标签页: Command +W
  • 保存终端输出:Command + S
  • 水平分隔当前标签页: Command + D (注意iTerm2中,Command+D是纵向分割)
  • 取消水平分隔: Command + Shift + D (注意iTerm2中,Command+D是水平分割)
  • 向左/向右切换标签: Command + shift + { 或 }
  • control + a / e 回到命令行头/尾
  • option + b / f 向前/后跳一个单词
  • control +u /k 删除光标前/后 所有单词
  • control + y 撤销上个操作

3.7. 如何在Finder右键菜单中直接打开Shell?

3.8. Mac OS X如何使用系统自带功能截屏?

参考:How To Capture a Screen Shot with Mac OS X

  • To capture the entire desktop, press Command-Shift-3.
  • To copy the entire desktop to clipboard, press Command-Control-Shift-3.
  • To capture a portion of the desktop, press Command-Shift-4.
  • To capture a specific application window, press Command-Shift-4, then press the Spacebar. The screen shot will be saved as a PNG file on your desktop. (The file is saved as PDF in Mac OS 10.3 and earlier.)
  • Add Control to the two shortcuts above to place the screen shot on the clipboard instead of saving it to the desktop.
  • Another method for capturing screen shots in Mac OS X is by using the bundled Apple utility, Grab, located in the Applications > Utilities folder. Grab is useful if you need to include a cursor or a menu in your screen shot, or if you want to save your screen shot to TIFF format.

3.9. 如何通过Boot Camp Assistance在MacBook Pro上安装Windows?

参考:Apple Help - Bootcamp

注意下面几点:

  • Windows分区一旦创建并且安装了Windows,以后再次调整Windows分区大小,需要重新安装Windows。所以安装windows前事先做好容量规划。
  • 安装好Windows分区后,需要安装bootcamp drivers,位置在制作好的usb启动盘的bootcamp目录下
  • 安装了bootcamp windows以后,macbook启动时按住option键,可以选择进入mac os还是windows
  • 安装了bootcamp windows以后,mac os x的桌面会多出一个bootcamp磁盘,打开可以访问(读写)windows分区的文件

3.10. Bootcamp Windows中如何访问Mac OS X的分区?

参考:

Mac OS X Yosemite的Bootcamp driver中是支持Windows访问Mac OS X分区的,但是如果在Mac OS X打开了FileVault,由于FileVault会对SSD上的所有文件进行加密,这样Windows就无法访问Mac OS X分区上的文件。只要把FileVault关掉,再进入bootcamp Windows,就可以看到Mac OS X分区,但是只能读,不能写。

3.11. 如何让Bootcamp Windows上的触摸板操作体验和Mac OS X一样?

参考:

我的Bootcamp Windows目前使用的是Trackpad++,注意Trackpad++依赖Power Plan Assistant,安装Trackpad++前必须安装Power Plan Assistant。

3.12. MacOS下的Hosts文件在哪?

zsh > cat /private/etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1	localhost
255.255.255.255	broadcasthost
::1             localhost

3.13. MacOS如何查看路由表?

执行命令netstat -nr。注意macos和linux的netstat命令不一样,注意查看文档。