how to compile and run a c file in terminal code example Example: how to run c in linux gcc hexdump.c -o hexdump //hexdump is an example for a file name