用命令行新建C文件

1
touch hello.c

编辑C文件

1
vim hello.c

编写C程序代码

1
2
3
4
5
6
#include <stdio.h>
int main()
{
printf("Hello World!");
return 0;
}

80-01

编译C程序文件

1
cc -c hello.c

80-02

生成可执行文件

1
cc hello.o

80-03

执行文件

1
./a.out

80-04