To make your life easy, just copy and paste the following into a shell:
Code:
echo '#include <stdio.h>
int main()
{
printf("Hello World\n");
return 0;
}' > test.c
Then run the folowing (again from the shell):
Code:
gcc test.c -o test
./test
Again, if hello world in printed, then everything is working.
When you are done, get rid of these files by running: