1、打开Linux系统,启动shell命令终端。2、在终端中输入gedit helloworld.c命令并回车。3、进入之后进行编译,编译好后保存并退出。4、输入gcc helloworld.c命令并回车,等待编译成功。5、输入命令 ./a.out 即可运行程序。