title: Running an executable file on Ubuntu
body: <p>I am trying to run a C/C++ program on Ubuntu.</p>
  
  <p>So at first <code>g++</code> didn't work at all in the shell, so I installed it using the command </p>
  
  <pre><code>sudo aptitude update &amp;&amp; sudo aptitude install g++
  </code></pre>
  
  <p>so it installed it, and when I wrote the most simplest program it compiled</p>
  
  <pre><code>g++ -Wall a.cpp -o d
  </code></pre>
  
  <p>But when i tried to execute it just wrote "d" on the command line and states that the command is not found, but if I type <code>ls</code> in the shell it shows me that there is an executable file named <code>d</code></p>
  
  <p>Glad if someone can clear things out for me</p>