On Tue, Oct 14, 2008 at 1:44 PM, Douglass Clem <[EMAIL PROTECTED]>wrote:
> What exactly is pushd and popd? I looked for executable by those names on > my machine (Ubuntu 8.04), but did not find any. > They are shell builtin commands just like the cd command. No actual executable. Just try it as follows: cd /etc pushd /var pwd returns /var popd pwd return /etc basically, it saves your current directory into a stack and changes to the new directory you specify. It works just like the cd command but saves your previous directory. Since this is a stack, it is repeatable more than once so just try this... cd /etc pushd /var pushd /root pushd / pwd returns / popd pwd returns /root popd pwd returns /var popd pwd returns /etc Andy --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "NLUG" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/nlug-talk?hl=en -~----------~----~----~----~------~----~------~--~---
