Skip to content

Latest commit

 

History

History
44 lines (22 loc) · 1.04 KB

command.md

File metadata and controls

44 lines (22 loc) · 1.04 KB

Mac 快捷键

查找文件夹: Command + 空格

打开终端: Command + 空格,输入 terminal

切换同一个应用的窗口: Command + ~

打开控制台: Option+Command+I/j

编辑Host文件: sudo vi /etc/hosts

查找Host文件: 打开Finder,按快捷键组合 Shift+Command+G 查找文件,输入/etc/hosts,确认前往

编辑器注释: /** + Tab

Mac 终端命令

查看路径: pwd

回到命令行头/尾: Control + a/e

删除光标前/后内容: Control + u/k

撤销上个操作: Control + y

向左/右切换标签: Command + Shift + {/}

水平分割当前标签页: Command + D

取消水平分割: Command +Shift + D

清屏: Command + K

使用Homebrew安装unrar: brew install unrar

解压rar文件: unrar x “要解压的rar文件(需cd到相应目录)”

解决chrome跨域问题: open -a /Applications/Google\ Chrome.app --args --disable-web-security --user-data-dir