> and compiled it with gcc hello.c (no errors noted; a.out was created)
> 
> but when i type a.out this is the error message:
> 
> host$ a.out
> bash: a.out: command not found

 you want './a.out' to tell bash to execute a.out in the current
directory, as . is not in you $PATH, or you could add . to your
path:
export PATH=$PATH:.
and if you want that to stick around, stick it in your 
~/.bash_profile.
however people will argue that it's a security risk to have .
in your path, but that's really a bigger deal when you're root.

greg
-- 
public key available at www.keyserver.net

PGP signature

Reply via email to