Common UNIX Commands

Source: Internet
Author: User

1.Xcode Operating principle
  • When we click Run, Xcode automatically does the following things for us:
    • Compile--->.o (target file)---> Links--->.out execution
2. Common UNIX Commands
    • Mac system uses UNIX file system, all files are placed in the root directory/below, so there is no concept of windows in the C-drive, D-Disk
    • Because Mac systems are UNIX-based, you can enter some UNIX instructions in "terminal" to manipulate UNIX directives commonly used in Mac systems: (It is not easy to forget if you need to use it frequently)ls :列出当前目录下的所有内容(文件\文件夹) pwd :显示出当前目录的名称
      cd :改变当前操作的目录
      who :显示当前用户名
      clear :清除所有内容
      mkdir : 创建一个新目录
      rm: 删除文件
      rm -r: 删除文件夹 -f 强制删除
      touch: 创建文件
      vi /open:打开、创建文件
        -q 退出
        -wq 保存并退出
        -q!强制退出
        i 进入编辑模式
        esc 退出编辑模式
        :wq!
      cat/more 都可以查看文件内容

Common UNIX Commands

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.