Sridhar J (june end) wrote:
> Hello
> 
> Thanks to all of you who replied promptly to my question. I would like to
> clarify one thing. When I compiled the program using gcc, I tried typing
> a.out. When that didn't work, I did a ls -l which showed me a file called
> a.out*.
> 
> Doesn't it mean that a.out is in the current directory? So why I should go
> to a parent directory as in ./a.out to execute it?

You aren't going to a parent directory in doing that.  "." is your 
present directory, and ".." is a parent.  So if you're in a child of the 
directory with a.out in it, then you'd use ../a.out.  If you're in the 
actual directory it's in, then use ./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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to