[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: how to execute an excutable file
- From: Micros50 <micros50 verizon net>
- To: Getting started with Red Hat Linux <redhat-install-list redhat com>
- Subject: Re: how to execute an excutable file
- Date: Tue, 27 Feb 2007 16:23:48 -0500
Note:
You would run the executable in one of the following ways
1) If you are currently in the same directory as the executable:
$ ./a.out
2) Or by specifying the entire path. Let's say the path to the
executable is /home/smith. You just do this:
$ /home/smith/a.out
Note:
You can also specify a name for your executable as follows:
$ cc hello.c -o hello
and then you would run the executable "hello"
$ ./hello
or
$ /home/smith/hello
Hope that helps.
mylar
On Tue, 2007-02-27 at 01:38 -0800, Nofriyadi Nurdam wrote:
> Hi all,
>
> I have compiled the program "HelloWorld.c".
> The C compiler gave me the executable file a.out as output.
> As I executed the a.out in console, I got answer "command not found".
> Is there someone who can tell me about that.
>
> Thanks in advance
> Nofriyadi
>
>
>
> ______________________________________________________________________
> We won't tell. Get more on shows you hate to love
> (and love to hate): Yahoo! TV's Guilty Pleasures list.
> _______________________________________________
> Redhat-install-list mailing list
> Redhat-install-list redhat com
> https://www.redhat.com/mailman/listinfo/redhat-install-list
> To Unsubscribe Go To ABOVE URL or send a message to:
> redhat-install-list-request redhat com
> Subject: unsubscribe
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]