1.打开终端,输入vi hello.c;
2.按i进入编辑模式,并在vi窗口中输入hello.c的内容
3.按ESC退出编辑模式,并输入:wq保存并退出vi;
4.运行编译,输入gcc hello.c -o a;
5.输出结果./a。