常用快捷键
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | Finder界面 打开”电脑”窗口            command + shift + C 打开桌面文件夹         command + shift + D 打开当前用户个人文件夹 command + shift + H  打开应用程序文件夹       command + shift + F 打开前往文件夹         command + shift + G 打开实用工具          command + shift + U 导航到搜索栏          command + option + F 以图标显示               command + 1 以列表显示               command + 2 以分栏显示               command + 3 以Cover Flow显示           command + 4 推出                  command + E 显示简介                command + I 打开                  command + O 前进                  command + ] 后退                  command + [  移到废纸篓               command + delete 倾倒废纸篓               command + shift + delete 倾倒废纸篓(不确认)      command + shift + option + delete 向前循环切换程序        command + Tab 向后循环切换程序        command + shift + tab 在字典中显示所选词       command + control +D 复制                  command + C 剪切                  command + V 粘贴                  command + V 还原                  command + Z 查找                  command + F 粘贴样式                command + option + V 粘贴并匹配样式         command + option + shift + V 移到行首                command + 左箭头 移到行尾                command + 右箭头 移到文稿开始          command + 上箭头 移到文稿末尾          command + 下箭头 选中插入点到行尾的文本 command + shift + 右箭头 选中插入点到行首的文本 command + shift + 左箭头 选中插入点到文稿开始的文本   command + shift + 上箭头 选中插入点到文稿结束的文本   command + shift +下箭头 扩选一个词               shift + option + 左右箭头 扩选一段落               shift + option + 上下箭头 选中范围向左一字符       shift + 左箭头 选中范围向右一字符       shift + 右箭头 扩选到上一行          shift + 上箭头 扩选到下一行          shift + 下箭头 放大                  command + shift + = 缩小                  command + shift + - 全屏截图                command + shift + 3 截全屏到夹纸板         command + shift +control + 3 区域截图                command + shift + 4 截区域到夹纸板         command + shift + control + 4 打开程序的偏好设置       command + , 循环显示应用多个窗口      command + ` 滚动到所选位置             command + J 关闭当前标签页         command + W 退出程序                command + Q 不退出程序关闭所有窗口 command +option + W 新建一个窗口          command + N 新建文件夹               command + shift + N 新建智能文件夹         command + option + N 显示隐藏Dock            command + option + D 隐藏当前运行程序窗口      command + H 隐藏其它程序窗口        command + option + H 当前程序窗口最小化到Dock  command + M 所有程序所有窗口到Dock   command + option + M 注销                  command + shift + Q 立即注销                command + shift + option + Q Safari中 将当前页面以邮件方式发送    command + I 打开第几个标签         command + 对应数字 关机 1、Ctrl + 关机:弹出关机提示 2、Ctrl + Option + 关机 : 正常关机快捷键 3、Command + Option + 关机 :进入休眠状态 4、Ctrl + Command + 关机:重启机器 5、Shift + Ctrl + Option + 关机:瞬间关机 | 
Finder 上显示文件路径
在Finder上显示文件夹路径:
defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE;
killall Finder
取消在Finder上显示文件夹路径:
defaults delete com.apple.finder _FXShowPosixPathInTitle;
killall Finder
配置环境变量(以添加adb为例)
- 进入当前用户的home目录: echo $HOME
- 创建.bashprofile文件: touch .bashprofile(有了就不要新建了)
- 打开.bashprofile文件: open -e .bashprofile
- 编辑文件,关闭自动保存, 多个路径到PATH下时,需要用“:”(英文的冒号)隔开例如: export PATH=${PATH}:/Users/ShaneChen/Documents/android-sdk-macosx/platform-tools:/Users/ShaneChen/Documents/android-sdk-macosx/tools
- 更新刚配置的环境变量: source .bash_profile
| 1 2 3 4 5 6 7 | export PATH=/usr/local/git/bin:/Users/cold/Library/Android/sdk/platform-tools/:/Users/cold/Documents/app/android-ndk-r10e:$JAVA_HOME/bin:${PATH} export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_51.jdk/Contents/Home export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar | 
Dashboard
关闭Dashboard
打开“终端”,输入命令:defaults write com.apple.dashboard mcx-disabled -boolean YES
继续输入命令,重启Dock:
killall Dock
打开Dashboard
如果想再重新开启,则使用下面的命令:
defaults write com.apple.dashboard mcx-disabled -boolean NO
继续输入命令,重启Dock:
killall Dock
在系统偏好设置,mission control里面,将“将dash board显示为空间”这一选项去掉即可。
修改hosts
打开Finder使用com + Shift + G 前往 /private/etc/
打开修改
可以先修改副本, 然后拖回到该文件夹覆盖, 过程需要密码
隐藏文件
显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool true
隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles -bool false
或者
显示Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles YES
隐藏Mac隐藏文件的命令:defaults write com.apple.finder AppleShowAllFiles NO
.DS_store
在Finder上访问服务器上的文件是后会留下.DSstore, 感觉这样不好, 使用命令禁止在外设上生成.DSstore
禁止.DS_store生成:
在本地硬盘上无法禁止生成
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
恢复.DS_store生成:
defaults delete com.apple.desktopservices DSDontWriteNetworkStores
 
	
0 Comments