With more than 10 years of windows, and finally changed a high with the Mac, as the saying goes regardless of the front end or back end or toward the Linux, no matter how many PCs will eventually go to the Mac. Not learning command line with what Mac? It's done!
Pwd shows the current file path (print working directory)
Ls shows the files and folders in the current path (list, not is! the landlord always thought it was Is, always wrong)
Mkdir create folder (make directory)
Rmdir delete folder (remove directory)
Rm delete file (remove directory)
Delete folder rm -rf ../../test123/ recursive adj. Return, recursive;
Cd move (change directory) Generally, pwd first looks at the current path, then ls sees what is wrong, and then directly enters the name wherever you want to go.
Cd .. Back to the previous directory
Cd ~ Back to the main directory Note ~ is back to the main directory, .. is back to the next level, it is very painful to use
Some of the rest are not very useful, skip it.
Mv move files or rename files (move)
Rename: mv a b mv gitignore ".gitignore"
Touch create file
Open open file
Forced to end ctrl + C
Common operations commands for MAC OS x terminals (Unix instructions)