Common operations commands for MAC OS x terminals (Unix instructions)

Source: Internet
Author: User



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)


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.