title: Why can't I change directories using "cd" in a script?
body: <p>I'm trying to write a small script to change the current directory to my project directory:</p>
  
  <pre><code>#!/bin/bash
  cd /home/tree/projects/java
  </code></pre>
  
  <p>I saved this file as proj, added execute permission with <code>chmod</code>, and copied it to <code>/usr/bin</code>. When I call it by:
  <code>proj</code>, it does nothing. What am I doing wrong?</p>