I decided to learn c++ (I program in c at work) and I have been reading some tutorials (and lots of posts here on SO). Ok, so I typed in the standard c++ "hello word", compiled with gcc on my ubuntu machine as "test".
Then I tried to run it by typing "test" and hitting enter. Nothing. Turns out I must run it with "./test". Ok,fine, I'll do that from now on. But why? The "./" just says that what I should run is in the current directory... Is the current directory not always part of the PATH when the os is searching for something to run? Can I make it so?