- 1. 知识体系
- 2. Further Reading
- 3. FAQ
- 3.1. Windows和Mac OS X的一些区别?
- 3.2. Macbook OS X Yosemite快捷键?
- 3.3. MacOS有哪些好用的SSH客户端?
- 3.4. MacOS建议使用什么包管理工具?
- 3.5. 如何配置Mac开发环境?
- 3.6. Macbook Terminal中有哪些快捷键?
- 3.7. 如何在Finder右键菜单中直接打开Shell?
- 3.8. Mac OS X如何使用系统自带功能截屏?
- 3.9. 如何通过Boot Camp Assistance在MacBook Pro上安装Windows?
- 3.10. Bootcamp Windows中如何访问Mac OS X的分区?
- 3.11. 如何让Bootcamp Windows上的触摸板操作体验和Mac OS X一样?
- 3.12. MacOS下的Hosts文件在哪?
- 3.13. MacOS如何查看路由表?
- 文件、目录与权限
- 系统自带的特殊目录及其作用
- OS X键盘快捷键
- 打开System Preferences -> Keyboard -> Shortcuts查看
参考:Mac OS X 平台有哪些好用的 SSH 客户端?, 最好掌握iTerm2和tmux。
参考:Mac开发配置手册
- 清屏: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 撤销上个操作
- 通过Automator创建一个Service,参考open-shell-at-selected-folder-via-automater-service
- 通过菜单Finder -> Services->Services Preferences,找到"Files and Folders"下的"New Terminal xxx"并勾选
参考: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.
注意下面几点:
- Windows分区一旦创建并且安装了Windows,以后再次调整Windows分区大小,需要重新安装Windows。所以安装windows前事先做好容量规划。
- 安装好Windows分区后,需要安装bootcamp drivers,位置在制作好的usb启动盘的bootcamp目录下
- 安装了bootcamp windows以后,macbook启动时按住option键,可以选择进入mac os还是windows
- 安装了bootcamp windows以后,mac os x的桌面会多出一个bootcamp磁盘,打开可以访问(读写)windows分区的文件
参考:
- Why I can not see mac partition under windows installed with bootcamp?
- How to access your OS X partition from Windows in Boot Camp
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分区,但是只能读,不能写。
参考:
我的Bootcamp Windows目前使用的是Trackpad++,注意Trackpad++依赖Power Plan Assistant,安装Trackpad++前必须安装Power Plan Assistant。
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
执行命令netstat -nr
。注意macos和linux的netstat
命令不一样,注意查看文档。