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