<p>I know a few advanced ways, to change directories. <code>pushd</code> and <code>popd</code> (directory stack) or <code>cd -</code> (change to last directory).</p>

<p>But I am looking for quick way to achieve the following:</p>

<p>Say, I am in a rather deep dir:</p>

<pre><code>/this/is/a/very/deep/directory/structure/with\ lot\ of\ nasty/names
</code></pre>

<p>and I want to switch to  </p>

<pre><code>/this/is/another/very/deep/directory/structure/with\ lot\ of\ nasty/names
</code></pre>

<p>Is there a cool/quick/geeky way to do it (without the mouse)?</p>

Do you mean that the path names are the same, and only one directory name changes ("a" becomes "another")? In that case:
```
```
cd ${PWD/a/another}
```
```
will switch to the other directory.
```
$PWD
```
holds your current directory, and
```
${var/foo/bar}
```
gives you
```
$var
```
with the string 'foo' replaced by 'bar'.