title: How do I reverse the cd command in the Terminal on Mac OS X?
body: <p>I am beginning to learn ruby and was following the instructions of one video to access the desktop through the -ls command in the terminal. Now, I would like to get out of the desktop in the terminal and don't know how. I know, I know I am a total noob... but can someone please help. Thanks. BTW the command I wrote was:</p>
  
  <pre><code>   my-iMac~ me$ cd Desktop/
     my-iMac:Desktop samuel$ ls
  </code></pre>