- 使用homebrew:
- 安装homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 安装软件:
brew install 软件
- 卸载软件:
brew uninstall 软件
- 列出已安装软件:
brew list
- 安装homebrew:
- 显示隐藏的文件夹和文件:
- 显示:
defaults write com.apple.finder AppleShowAllFiles -bool true
- 隐藏:
defaults write com.apple.finder AppleShowAllFiles -bool false
- 显示:
- 添加别名:
vim ~/.bash_profile
alias ll='ls -lah'
- 复制为路径:
Command+Option+C
- 取消开盖自动开机:
sudo nvram AutoBoot=%00
- 恢复开盖自动开机:
sudo nvram AutoBoot=%03
- 截屏:
Control + Command + Shift + 4
- 快速锁屏:
Control + Command + Q
- 发送表情:
Control + Command + Space
- 查看指定端口的进程号:
lsof -i:80
文档更新时间: 2021-01-29 19:10 作者:lee