From: Mark Gallagher <mark@cyberfuddle.com>
To: "Sridhar J (june end)" <sridharj.hyd@cxknetworks.com>
Cc: linux-newbie@vger.kernel.org
Subject: Re: gcc
Date: Wed, 26 Jun 2002 22:25:36 +1000 [thread overview]
Message-ID: <3D19B2C0.5080204@cyberfuddle.com> (raw)
In-Reply-To: F4D3DB9A18752A4F99FD880ABC5407179D15B5@ccdc-exchg.careercommunity.com
Sridhar J (june end) wrote:
> Hello
>
> When I compile a C program using gcc, I get an a.out file. But when I type
> a.out, the error is "No such command"
>
> How do I execute the file?
When you type "a.out", Linux checks the various "path" directories (e.g.
"/usr/bin") for a file named "a.out". If it can't find it, then it
tells you that, well, it can't find it - that the command doesn't exist :o).
You can get around this by typing the exact path of the program. Say
a.out is located in "/home/sridhar/". You can type "~/a.out" (from
anywhere), or change to your home directory and type "./a.out".
--
Mark Gallagher
http://cyberfuddle.com/infinitebabble/
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next prev parent reply other threads:[~2002-06-26 12:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-26 7:33 gcc Sridhar J (june end)
2002-06-26 7:48 ` gcc Joseph Jackson
2002-06-26 8:07 ` gcc Kilaru Sambaiah
2002-06-26 13:52 ` gcc Elias Athanasopoulos
2002-06-26 12:25 ` Mark Gallagher [this message]
2002-06-26 12:34 ` gcc Szekely-Benczedi Endre
-- strict thread matches above, loose matches on Subject: below --
2001-09-04 21:04 gcc David Rundle
2001-09-04 22:08 ` gcc Kurt Garloff
2001-06-22 21:46 GCC Steven Liu
2001-06-22 21:46 ` GCC Steven Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D19B2C0.5080204@cyberfuddle.com \
--to=mark@cyberfuddle.com \
--cc=linux-newbie@vger.kernel.org \
--cc=sridharj.hyd@cxknetworks.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.