hosts 文件位置:
/etc/hosts
使用homebrew:
- 安装homebrew:
# /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" /usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)" git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
- 安装软件:
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 或 vim ~/.zshrc
alias ll='ls -lah'
复制为路径:
Command+Option+C
取消开盖自动开机:
sudo nvram AutoBoot=%00
恢复开盖自动开机:
sudo nvram AutoBoot=%03
截屏:
Control + Command + Shift + 4
录屏:
Command + Shift + 5
快速锁屏:
Control + Command + Q
开启/关闭全屏:
Control + Command + F
发送表情:
Control + Command + Space
查看指定端口的进程号:
lsof -i:80
文档更新时间: 2024-04-20 10:57 作者:lee