On Wed, 26 Jun 2002, Sridhar J (june end) wrote: > 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?
yep (a.out is in the current directory). You just stay in the directory where a.out is located. The first dot in "./a.out" _means_ the current directory. If you want to try it, try a "ls -l .", you should see the content of the current directory (output should be the same as "ls -l"). HTH -- Jos Lemmerling on Debian GNU/Linux jos(@)lemmerling(.net) - 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