<div dir="ltr">pushd and popd are stack-oriented. You may notice with cd that you can do "cd -" to go to your previous directory. Think of pushd and popd as a way to store those up. You pushd into various directories, which loads them up on the stack, then popd and you get cd'd back into those directories (in reverse order).<div><br></div><div>Now, you may be asking yourself "why?". It's just an old way of doing things back when the speed of stack memory meant something. I'm sure someone could figure out an actual use for it, but every time I see it implemented, it's done to be obscure, not because it couldn't be more simply implemented with an array.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 10, 2014 at 1:06 PM, Michael Havens <span dir="ltr"><<a href="mailto:bmike1@gmail.com" target="_blank">bmike1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">what is the difference between pushd and pod and the command cd<br clear="all"><div>:-)~MIKE~(-:</div>
</div>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>James McPhee<br><a href="mailto:jmcphe@gmail.com">jmcphe@gmail.com</a>
</div>