Terminal Common commands

Source: Internet
Author: User

1,pwd display terminal's working path

2,ls displays all files and folders under the current working path

3.ls–l displays all files and folders under the current working path with detailed information

4.ls/ View all files and folders under the root directory

5.ls ~ view all files and folders under Home directory

6.mkdir directoryname create 1 folders under current working path

7.rmdir directoryname Delete the specified folder under the current working path

8,CD directorypath switch working path

9.Touch fileName creates 1 empty files under the current working path (remember to have an extension)

10.RM fileName Removes the file under the current working path (with the extension)

11,cc Verify that the computer is not installed compiler success, if prompted "Clang:error:no input Files" description of the successful installation

12,command+/- Adjust the size of the Terminal interface (zoom in/Zoom Out)

13. Clear clears the information on the terminal screen

Information when you just opened the terminal

Run the C file with the terminal compile link

1. Create c file, end with. C

2. Edit C code

3. Compile the source file of C to form a machine language file

3.1. Instruction:cc-c test.c

Under normal circumstances, a TEXT.O binary file is generated

3.2. Add the boot code to the TEXT.O to make it a machine language program that can be run

directive:cc TEXT.O

Normally a machine language program called A.out is generated (this process is called a link)

3.3, let the operating system to high CPU execution a.out (directly in the terminal to drag a.out into, enter, or ./a.out)

You can also directly cc text.c, and then generate a.out, omitting the steps to generate. O.

Attention:

Warning---Warning: compilation can pass, can form an. o file, but may not necessarily form an. out file

Error---Errors: cannot form. o File

Terminal Common 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.