How to compile c program in linux using gcc - Log2Base2
www.log2base2.com › C › basicLinux. 1.Open terminal . Use the vim editor . Open file using, 2. vim file.c (file name can be anything but it should end with dot c extension) command. To Edit the file: 3.Press i to go to insert mode. Type your program. 4.To save the file: Press Esc button and then type :wq. It will save the file. To compile the program: Type, 5. gcc file.c ...