LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-18-2011, 02:15 AM   #1
way2bhanu
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
Question problem in changing the name of executable file a.out


Is there any way to change the name "a.out" of executable file to any other name of our choice..
 
Old 01-18-2011, 02:39 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,565

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Assuming you are using gcc ... have you done a man on it?
 
Old 01-18-2011, 03:31 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390Reputation: 2390
Hi,

You don't give much to work with, so I'm assuming you use gcc:

gcc program.c -o program-output

Like grail pointed out: This information is readily available and could have been found by looking at the gcc man-page or an internet search.

Hope this helps.
 
Old 01-18-2011, 10:27 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,167

Rep: Reputation: 890Reputation: 890Reputation: 890Reputation: 890Reputation: 890Reputation: 890Reputation: 890
^ if the above isnt what you are after:
Code:
mv a.out <whatever-floats-your-boat>
 
Old 01-19-2011, 02:16 AM   #5
way2bhanu
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Smile is there any way 2 change name of a.out

thanx grail and druuna...it works...
 
Old 01-19-2011, 03:14 AM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,565

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Cool ... please mark as SOLVED once you have a solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gdb: problem while debug an executable file smartgupta Programming 2 10-16-2008 05:51 AM
problem of function call address in executable file valpa Programming 12 09-05-2008 09:36 AM
Changing executable file extension acwbrat Programming 25 10-19-2007 11:19 PM
Executable file path problem jinics Linux - General 5 02-22-2007 07:51 AM
Changing the default open action for an executable file nitrambass LinuxQuestions.org Member Intro 1 06-22-2004 04:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration