The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 09-30-2007
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,119
Quote:
Originally Posted by compbug View Post
well, how could I do that?
could you please explain?

I think it is better way to have an executable for all C codes.... atleast for the trial codes we run to understand the concepts!!

Thanks!
Most compilers let you do something like:
gcc myprogram.c -o myprogram

And anyway there is a mv command that can rename a file. So you could do:
gcc myprogram.c
mv a.out myprogram

But bear in mind that as porter mentioned, a file like xyz.c may not be a program. It could just be a function.