1.剪切文件
选中文件 Command + C; 进入目标文件夹 Option+ Command + V;
2.窗口操作
Command+M:最小化窗口;
Command+T:在浏览器中打开新的选项卡;
Command+W:关闭窗口;
Command+Q:退出程序;
3.如何截图
Command+Shift+3: 全屏截图,截获当前的全屏;
Command+Shift+4: 区域截图,通过拖拽选择截图区域;
Command+Shift+4+Space:程序窗口截图,通过选择程序的窗口,单击后截图.
注:默认情况,截图会保存在桌面上,就是Desktop文件夹下
4、访问远程共享目录
Finder中,Command+K,在Server Address中输入目标机器的IP与目录
smb://xxx.xxx.xxx.xxx/xxx
5、锁屏
Shift+Control+推出键, 注意要在偏好设置中打开可以锁屏的设置
6、spotlight
Control+Space
7、强制结束任务
Command+Option+Esc
8、窗口最大化
Shift+窗口左上角的绿色最适化按钮
9、进入/退出全屏
Command+Shift+F
10、用brew进行程序的命令行安装与卸载
安装brew: ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
寻找程序:brew search /gcc*/ 或 brew search gcc
安装程序:brew install gcc
卸载程序:brew uninstall gcc
列出已安装的软件: brew list
11、修改Hostname
sudo scutil --hostname 新的hostname
另外,Mac还有计算机名称的概念,可以通过偏好设置的共享来修改,可用于远程登陆时标识本机器
sudo scutil --ComputerName 新的计算机名
另、查看IP,网关,DNS
查看IP $ifconfig
查看Gateway $netstat -rn 看输出信息中0.0.0.0或default那行
查看DNS $ more /etc/resolv.conf
#
# Mac OS X Notice
#
# This file is not used by the host name and address resolution
# or the DNS query routing mechanisms used by most processes on
# this Mac OS X system.
#
# This file is automatically generated.
#
nameserver 219.141.136.10
nameserver 219.141.140.10