<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1037447" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1037447</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-management/shell-script-cd#comment-1214688</link>
    <description> &lt;p&gt;The [incode]cd[/incode] only applies &quot;locally&quot;, that is, inside the new shell process ([incode]#!/bin/sh[/incode]).  Once the process terminates, you&#039;re naturally returned right back where you initiated it.&lt;/p&gt;
&lt;p&gt;A neat way to do this sort of thing is to set an alias in your shell.  Something like:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;mjohn0882@cs:~/bin$ alias c=&amp;quot;cd $HOME/public_html/CSE121; pwd&amp;quot;&lt;br /&gt;mjohn0882@cs:~/bin$ c&lt;br /&gt;mjohn0882@cs:~/public_html/CSE121$&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;Put that alias definition in your shell&#039;s init file (.bashrc?) and you&#039;ll have it for all new sessions.  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 07 Feb 2007 19:52:23 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1214688 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
