CommandLineTools reinstall

xcode-select --print-path
# in my case /Library/Developer/CommandLineTools

# the next line deletes the path returned by the command above
sudo rm -rf $(xcode-select --print-path)

# install them (again) if you don't get a default installation prompt
xcode-select --install

Terminal 几个快捷键

将光标移动到行首

ctrl + a

将光标移动到行尾

ctrl + e

清除屏幕

ctrl + l

搜索以前使用命令

ctrl + r

清除当前行

ctrl + u

清除至当前行尾

ctrl + k

单词为单位移动

option + 方向键