I have put together this page to show how easy it is to compile and run c programs in unix based systems (I am using a mac which is based on unix and i am assured by my unix using friends that to compile in a linux OS is identicle.)
So here it goes.
First of all you will have had to written or have the source code for the program you want to compile. This can be doen in any text editor, I use simpletext, once you have your code written out call it something like source.c then type in the above in your terminal (i.e type in cc then the file you want to compile) then press enter.
Then once the file has compiled type in the program into your terminal then hit enter again and it should run (providing the source actually works). Its that simple!