gcc on Linux 8.0 not working



I just purchased Red Hat Linux 8 Bible by Chris Negus, used.
I loaded Linux 8.0 with the purpose of learning C via Kernigan and
Ritchie, Linux, and Nasm. I didn't install any GUI, I'm going to work
in the shell.

I installed "developer tools" , and wrote the Hello World program
verbatim from K&R in my home directory. When I type "gcc hello.c", no
error messages appear, and a.out appears in the current directory.

But, when I try to run Hello, world by typing "a.out", the shell
returns:

-bash no command a.out found

or something very close to that, I'm not sitting at that computer
right now.
I tried changing the name of a.out, and it still doesn't work.

Tom Gear

.


Quantcast