Shell Language
- The most popular shell language is Bash.
- Modern MacOS versions ship with Zsh instead of Bash
Navigation
~: is shorthand for the user’s home directory. e.g. “/Users/wayne”
-: bounce back and forth between two directories
gco - even can change between Git branches
pwd: Print Working Directory
ls: List
cd: Change Directory
cd ..: change to the parent directory
Other Command
⌃ + L: clear (while terminal is idle)
⌃ + K: clear (even while the shell is busy)
&&: Chaining commands
参考链接
The Front-End Developer’s Guide to the Terminal