pushd/popd
James Mcphee
jmcphe at gmail.com
Fri Oct 10 13:10:16 MST 2014
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).
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.
On Fri, Oct 10, 2014 at 1:06 PM, Michael Havens <bmike1 at gmail.com> wrote:
> what is the difference between pushd and pod and the command cd
> :-)~MIKE~(-:
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
--
James McPhee
jmcphe at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20141010/acc9ee9a/attachment.html>
More information about the PLUG-discuss
mailing list