title: How to execute linux console app without ./
body: <p>Wow, let me first say that I've lost count how many answers I've found on this site.  You guys are awesome!</p>
  
  <p>So, my first-ever question I'm posting is rather basic so I hope it's not badly received.  I did search to find an answer on google as well as here, but did not find an answer.</p>
  
  <p>I just created a console app with code:blocks on linux, compiled it then ran within code:blocks.  Works just fine.  Then I opened linux bash shell, cd to where the binary was, then just tried running it from there, no dice.  A linux buddy of mine came over and told me to try ./ preceeding it.  Viola, that worked.  I was dumbfounded because I thought ./ was only needed to execute shell scripts.  I checked file permissions for the binary built by g++ and they are these:  -rwxrwxr-x</p>
  
  <p>I've found other tutorials on building the Hello World application with code:blocks and they also say to execute on the command line using ./</p>
  
  <p>Why is this so?  Also, how can I build a console application or any other binary application such that the ./ is not required to execute it?  I'm assuming it's possible somehow seeing as the vast majority of the built-in linux commands, such as grep, etc do not require the ./ to execute.</p>
  
  <p>Thanks, guys.</p>